joshnh_Git-Commands_ A list of commonly used Git commands
joshnh_Git-Commands_ A list of commonly used Git commands
--
Command Description
Basic Snapshotting
Command Description
git add -A Add all new and changed files to the staging area
git remote -v View the remote repository of the currently working file or directory
Command Description
git branch List branches (the asterisk denotes the current branch)
git checkout -b [branch name] origin/[branch name] Clone a remote branch and switch to it
git branch -m [old branch name] [new branch name] Rename a local branch
git merge [branch name] Merge a branch into the active branch
git merge [source branch] [target branch] Merge a branch into a target branch
Command Description
git push origin [branch name] Push a branch to your remote repository
https://github.com/joshnh/Git-Commands 2/3
2/19/25, 8:28 PM joshnh/Git-Commands: A list of commonly used Git commands
Command Description
git pull origin [branch name] Pull changes from remote repository
Command Description
git diff [source branch] [target branch] Preview changes before merging
Releases
No releases published
Packages
No packages published
Contributors 18
+ 4 contributors
https://github.com/joshnh/Git-Commands 3/3