git 上传项目
2016-02-25 20:03
239 查看
参考:http://jingyan.baidu.com/article/27fa732683ebf546f8271f2e.html
1. 初始化git
2. 在github上创建项目,获取git地址(http://source.jd.com/app/test.git)
3. 远程添加git到github仓库上(注意:一定要在你项目目录中 git remote add <remote-name> <remote-url>)
4. git pull(拉下最新的代码)
5. git add . (把当前文件添加到本地仓库中)
6. git commit -m 'init' (把代码提交到本地仓库中)
7. git push origin main(push到远程main分支)
8. 基本命令
1. 初始化git
2. 在github上创建项目,获取git地址(http://source.jd.com/app/test.git)
3. 远程添加git到github仓库上(注意:一定要在你项目目录中 git remote add <remote-name> <remote-url>)
4. git pull(拉下最新的代码)
5. git add . (把当前文件添加到本地仓库中)
6. git commit -m 'init' (把代码提交到本地仓库中)
7. git push origin main(push到远程main分支)
8. 基本命令
git status git add git commit -m "注释" git push origin main git pull git push git log --abbrev-commit --pretty=online git diff git push origin main git rm -rf --cached .settings git log --word-diff --abbrev-commit --pretty=online
git branch -av git push origin releases/20170112215409368-code git add -A git merge --no-ff b39f2d15a0481900fcf0d9941cdcaad80bf1a92f git reset --hard git fetch origin git merge --no-ff b39f2d15a0481900fcf0d9941cdcaad80bf1a92f git remote show origin git rebase git reset 781e9ef85296fd47bee3d52e69a9b01c7c64dfd7 --hard git rebase
相关文章推荐
- Python XML解析
- LeetCode:Increasing Triplet Subsequence
- CSS动画@-webkit-keyframes
- 将NSString转换成UTF8编码的NSString
- ZOJ3537 解题报告及总结
- H2的存储子系统——MvStore
- Eclipse常用设置
- Walking on a Grid uva10913
- python简单的绘制折现图
- 观察者模式的初始学习--自己实现
- CocoaPods和git
- main()函数
- 访问单个节点的删除
- 进程环境 知识点汇总《APUE》 chapter-7
- install php
- JNIEnv常用方法
- VS2010添加类失败问题,弹出错误框,提示 CodeModel操作失败,无法访问标记数据库
- 《leetCode》:Construct Binary Tree from Inorder and Postorder Traversal
- [Leetcode] 212. Word Search @python
- iptables实现网络防火墙及地址转换