ssh-keygen -t rsa -C “you@example.com”
.ssh\id_rsa.pub
git config --local -l
git config --global -l
git config --system -l
git config --global user.email “you@example.com”
git config --global user.name “name”
git clone git@github.com:/gittest.git
git clone -b dev git@github.com:/gittest.git
git status
git branch dev
git checkout dev
git add .
git commit -am “first commit”
git push --set-upstream origin dev
git fetch
git checkout
git pull
git push
git log HEAD --pretty=format:%s
git remote -v
#add an existing
git init
git add .
git commit -am “first commit”
git remote add origin git@github.com:*/gittest.git
dev:
git branch -M dev
git push -u origin dev
main:
git pull origin main --allow-unrelated-histories (type i then esc and type :wq)
git push --set-upstream origin main
#update after fork
git remote add upstream URL
git checkout main
git fetch upstream
git merge upstream/main
git push origin main
#update after disconnection
git clone --recursive URL
git submodule update --init --recursive