git init
git add .
git status
git commit -m "commit message u want"
git remote add origin "remote git/lab/hub url"
create access token if u have 2fa
https://github.com/settings/tokens
remember token its used as password
git push -u origin master
it created two branch in github repo one main and another master
pull
git pull 'remote_name' 'branch_name'
.
make new branch
git checkout -b 'new_branch'
git push origin new_branch
src:
https://www.datacamp.com/community/tutorials/git-push-pull
Comments
Post a Comment