Skip to content

Instantly share code, notes, and snippets.

@gabriel-dehan
Created May 22, 2018 19:39
Show Gist options
  • Save gabriel-dehan/bf50844c7df5c6ba60e7a648f2208698 to your computer and use it in GitHub Desktop.
Save gabriel-dehan/bf50844c7df5c6ba60e7a648f2208698 to your computer and use it in GitHub Desktop.
Gitcheat
  • What do I do after merging a branch ? What does my team need to do ?

  • I created a new branch but I forgot to pull master before Commit all your changes (git add ., git commit) Go back to master git checkout master Update master git pull origin master Go back to your branch git checkout my-branch Take all the changes from master and add them to my branch git merge master Fix conflics & Commit if needed

  • I have conflicts how do I solve them git status If something is red (unmerged) open the file fix the conflicts Then git add and git commit (then you can push or continue working as u were)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment