美文网首页
ubuntu's git install & config &

ubuntu's git install & config &

作者: bfx1000 | 来源:发表于2018-10-02 19:04 被阅读0次

install:

sudo apt-get install git

config:

git config --global user.name "your_github_user_name"
git config --global user.email "your_github_user_email"

push files to git

You should make a repository both on github and local computer.

  …create a new repository on the command line
 echo "# gittest" >> README.md
 git init
 git add README.md
 git commit -m "first commit"
 git remote add origin https://github.com/bfx1000/gittest.git
 git push -u origin master
 
 …or push an existing repository from the command line
 git remote add origin https://github.com/bfx1000/gittest.git
 git push -u origin master

相关文章

网友评论

      本文标题:ubuntu's git install & config &

      本文链接:https://www.haomeiwen.com/subject/albpeftx.html