Skip to content

Instantly share code, notes, and snippets.

@hanifa2102
Last active September 23, 2020 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanifa2102/d2e9db688d0197263950fd684fb00663 to your computer and use it in GitHub Desktop.
Save hanifa2102/d2e9db688d0197263950fd684fb00663 to your computer and use it in GitHub Desktop.
Git Commands
# Create Branch
git checkout -b john_branch
# Push local branch to github
git push --set-upstream origin john_branch
# Update Local Branch to Master
git checkout master
git pull
git checkout john_branch
git merge origin/master
# Add, Commit and Push all your new files
git add <new_files>; git commit ; git push
# Pull Request
https://www.youtube.com/watch?v=rgbCcBNZcdQ
@hanifa2102
Copy link
Author

hanifa2102 commented Sep 22, 2020

git diff master..branch1 src/

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