branch develop Your branch is up to date with 'origin/develop'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: Response.xcodeproj/project.pbxproj modified: Response.xcodeproj/xcshareddata/xcschemes/Intrepid Response.xcscheme no changes added to commit (use "git add" and/or "git commit -a")
branch develop Your branch is up to date with 'origin/develop'. Changes to be committed: (use "git restore --staged <file>..." to unstage) modified: Response.xcodeproj/project.pbxproj modified: Response.xcodeproj/xcshareddata/xcschemes/Intrepid Response.xcscheme
all remotes git fetch —all # Push a new branch to the origin and track it git push -u origin NEW_BRANCH # Pull a branch from the origin git pull [origin] # View the remotes git remote -v # Checkout a branch from the remote git checkout SOME_BRANCH_THAT_IS_ON_THE_REMOTE
of the two branches # The default strategy is recursive merge git merge BRANCH # Git rebase using the master as the base git rebase master # Git pull and rebase. This will move your commit to the HEAD git pull --rebase origin BRANCH
THAT PEOPLE MAY HAVE BASED WORK ON. IF YOU FOLLOW THAT GUIDELINE, YOU’LL BE FINE. IF YOU DON’T, PEOPLE WILL HATE YOU, AND YOU’LL BE SCORNED BY FRIENDS AND FAMILY. Pro Git, Chapter 3.6 - Rebasing TEXT
HEAD git reset --hard HEAD # Go back n commits where n is a number git reset --hard HEAD~n # Fix a message and add other files git add forgotten_file git commit --amend # Unstage a file git reset HEAD file_name # Unmodify a file git checkout -- file_name