Last active
May 25, 2022 14:21
-
-
Save plaugh15/4afcb81eb3e79494e862a52c13086ca0 to your computer and use it in GitHub Desktop.
[Git Commands] Commands for Git #git
This file contains hidden or 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 COMMANDS | |
| ============================================================================= | |
| git status: Shows current status of git files. | |
| git log: Shows list of commits to git branch. | |
| git commit -m "Comment about changes on this version": Commits changes to branch you're currently on | |
| git branch: Lists all a Git project’s branches. | |
| git branch branch_name: Creates a new branch. | |
| git checkout branch_name: Used to switch from one branch to another. | |
| git merge branch_name: Used to join file changes from one branch to another. | |
| git branch -d branch_name: Deletes the branch specified. | |
| git clone: Creates a local copy of a remote. | |
| git remote -v: Lists a Git project’s remotes. | |
| git fetch: Fetches work from the remote into the local copy. | |
| git merge origin/master: Merges origin/master into your local branch. | |
| git push origin <branch_name>: Pushes a local branch to the origin remote. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment