

Ali Heydari
Collaboration
cloning a repository
git clone <repository_url>
git clone --branch=develop <repository_url>
get repository remotes
git remote -v
fetching
git fetch origin master
git fetch origin
git fetch
git fetch --all
git fetch --write-commit-graph
pulling
- pull = fetch + merge:
git pull origin master
- pull = fetch + rebase:
git pull --rebase
⚠⚠⚠
switching to remote branch
git switch origin/develop
pushing
git push origin master
git branch -vv
git branch -r
git push -u origin master
git push -d origin ali/feat/sentry
git push -f ali/test/signup
⚠⚠⚠git remote prune origin
⚠
sharing tags
git push origin v1.0.0
git push origin --delete v1.0.0
git tag -d v1.0.0
working with remotes
git remote add upstream
git remote get-url upstream
git remote set-url upstream <new_repository_url>
git remote rename upstream base
git remote remove base
Attachments: [session video 📺](\\192.168.100.14\Training Courses\git)
Tags:lecture