廖雪峰分享的git文件:
http://pan.baidu.com/s/1jGxjQL4#path=%252Fpub%252Fgit
目录:
1. 创建文件夹&文件
2. 远程推送(git bash本地推送到github)
3.
- git bash命令创建文件目录和文件
$ mkdir project
$ cd project
$ echo '' > test1.txt #在project文件夹下创建test1空文件
2.远程推送。SSH方法(或http)
#…or create a new repository on the command line
echo "# learngit" >> README.md#创建文件
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:*username*/*filename*.git(http方法origin url)
git push -u origin master
#…or push an existing repository from the command line
git remote add origin git@github.com:*username*/*filename*.git(http方法origin url)
git push -u origin master
#…or import code from another repository
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.