Skip to content

Instantly share code, notes, and snippets.

@appikonda
Last active February 23, 2016 19:30
Show Gist options
  • Save appikonda/aa993edd33d60610376b to your computer and use it in GitHub Desktop.
Save appikonda/aa993edd33d60610376b to your computer and use it in GitHub Desktop.
git commands
git pull origin master
//create new branch
git checkout -b branch name
//fix the bug new branch
// to compare the files
git diff
git diff <branch_name> -- /path/to/file/in/repo
// to add individual file (recommended)
git add " give file path"
// to add all files
git add .
// commit the change with comment
git commit -m "comment"
git push origin branch name
// pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment