Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Git Clone:
- git clone https://name-of-the-repository-link
- Git New branch, list, deleting:
- git branch -b (branch name)
- git branch or git branch --list
- git branch -d
- Git Checkout:
- git checkout (branch name)
- Git Switch:
- git switch means you have already created branch.
- git switch (branch name)
- Git Status Command for:
- like current branch, commit, push or pull, files staged, unstaged or untracked, files created, modified or deleted
- git status
- Git Add:
- git add
- git add -A (for everything)
- Git Commit:
- git commit -m "commit message
- Git Push: for upload local repo content
- git push: it is commonly used to upload local repository content to a remote repository.
- git push --set-upstream: Branch 'branch Name' set up to track remote branch 'branch Name' from 'origin'.
- git push -u origin: For push working existing branch .
- git push
- git push --set-upstream
- git push -u origin
- Git Pull: for git fetch from local repo which will merge branch
- git pull
- Git Merge: for merge branch to another
- git checkout (branch name)
- git fetch
- git merge
Advertisement
Add Comment
Please, Sign In to add comment