User Tools

Site Tools


git:github

This is an old revision of the document!


cd <directory>
git init
git status
On branch master
...

# rename master to main
git branch -m master main

git status
On branch main
...

git add .
git commit -m "init commit"
git remote add origin git@github.com:mschuller/<repository>.git

git pull origin main

git branch -a
* main
  remotes/origin/main

git branch -r
  origin/main

git push --set-upstream origin main

git add .
git status
git commit -m "second commit"
git push
git/github.1637881901.txt.gz · Last modified: 2023/01/11 20:30 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki