git 在Ubuntu上使用git和github

1.installing git for linux

sudo apt-get install git

2.configuring github: create your github account

git config --gloabal user.name "user_name"
git config --global user.email "email"

3.creating a local repository

git init git_test
cd git_test

4.creating a repository on github or pull a repository

creating a repository on github

git 在Ubuntu上使用git和github

git remote add vscode https://github.com/xulei717/VSCode.git

or pull a repository

git remote add vscode https://github.com/xulei717/VSCode.git
git pull vscode master

5.creating a file 

gedit README

6.adding repository files to an index

git add README

7.committing changes made to the index

git commit -m "some_message"

8.pushing files in local repository to github repository

git push vscode master

 

参考:

https://www.howtoforge.com/tutorial/install-git-and-github-on-ubuntu/#-configuring-github

https://git-scm.com/

 

上一篇:windows redis 连接错误Creating Server TCP listening socket 127.0.0.1:637 9: bind: No error


下一篇:Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointc