-
Notifications
You must be signed in to change notification settings - Fork 0
K-Chavda/git-commands
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
// Repository git init // Initialize a new Git repo git clone <repo-url> // Clone a repo from a URL // Basics git status // Show changes status git add <file> // Add changes to staging git commit -m "Message" // Commit changes with a message git log // View commit history // Branching git branch // List branches git branch <branch-name> // Create a new branch git checkout <branch-name> // Switch to a branch git merge <branch-name> // Merge changes from a branch git branch -d <branch-name> // Delete a branch // Remote Repositories git remote // List remotes git remote add <name> <url> // Add a remote git push <remote> <branch> // Push changes to a remote git pull <remote> <branch> // Pull changes from a remote // Undoing Changes git pull // Fetch and merge changes git fetch // Fetch changes without merging git reset --hard HEAD // Discard changes git revert <commit-hash> // Revert changes in a commit // All Commands to Upload Your Project to GIT git init git add . git commit -m "Initial commit" git remote add origin <repository-url> git push -u origin <branch-name>
About
Git Command Lists
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published