User Tools

Site Tools


tutorials:git_quick_reference

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorials:git_quick_reference [2019/03/03 01:21]
marcus.williams [Variations]
tutorials:git_quick_reference [2019/04/29 19:11]
marcus.williams [Variations]
Line 9: Line 9:
 <​code>​ <​code>​
 git status git status
-git add --all+git add -A
 git commit -m "JD - commit server work" git commit -m "JD - commit server work"
 git pull origin master git pull origin master
Line 38: Line 38:
 git push --force origin master git push --force origin master
 </​code>​ </​code>​
 +
 +Pull with forced overwrite [[https://​stackoverflow.com/​questions/​1125968/​how-do-i-force-git-pull-to-overwrite-local-files|link]]:​
 +<​code>​
 +git fetch --all
 +git reset --hard origin/​master
 +</​code>​
 +
 +[[https://​stackoverflow.com/​questions/​1260748/​how-do-i-remove-a-submodule|How to remove a submodule]]
  
tutorials/git_quick_reference.txt · Last modified: 2020/01/03 18:29 by marcus.williams