Tag: git

1 Posts

Git
init and push to remote git init git add . git commit -m "init" git remote add origin <url> git branch -M main git push origin main commit # add 1.txt git add 1.txt # add . git add . git commit -m 'add 1.txt' git pull origin main git push # force push git push -f origin main:main git pull <remote> <remote-branch>:<local-branch> git push <remote> <local-branch>:<remote-branch>