您的位置:首页 > 其它

git 的应用学习

2016-02-15 14:23 260 查看
git 的简单应用:

1.登录https://github.com/,    如: new respository,       copy https://github.com/wxb2939/nav.git;

2.在终端进入项目目录,git clone https://github.com/wxb2939/nav.git;

3.git add 已有项目目录,如:git add nav  

4.将文件commit到本地仓库,  如:git commit -m "first commit";

5.添加到远程仓库,如:git remote add origin https://github.com/wxb2939/nav.git;

6.将本地仓库添加到远程仓库,如:git push -u origin master;

常用到的命令:

显示状态     git log --oneline --decorate --graph --all; 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: