-
-
Save appikonda/aa993edd33d60610376b to your computer and use it in GitHub Desktop.
git commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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