跳转到内容

git-learn

此内容尚不支持你的语言。

quick setup — if you’ve done this kind of thing before

Section titled “quick setup — if you’ve done this kind of thing before”

20240429123755

…or create a new repository on the command line

Section titled “…or create a new repository on the command line”
Terminal window
echo "# git-learn" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:Nahida-aa/git-learn.git
git push -u origin main

…or push an existing repository from the command line

Section titled “…or push an existing repository from the command line”
Terminal window
git remote add origin git@github.com:Nahida-aa/git-learn.git
git branch -M main
git push -u origin main
t1