码迷,mamicode.com
首页 > 其他好文 > 详细

GIT常用命令

时间:2019-12-07 01:21:03      阅读:69      评论:0      收藏:0      [点我收藏+]

标签:常用命令   master   git init   comment   远程   com   git   init   mit   

git init

git add .

git commit -m "comment"

git remote add origin ssh://git@hupz.com:/home/git/gitrepo/gittest.git

git push origin master

 

 

# 查看关联的远程仓库的名称

git remote

# 查看关联的远程仓库的详细信息

git remote -v

# git_url 为你的远程仓库的 url,可采用 http 协议或 ssh(git) 协议

git remote add origin <url>

GIT常用命令

标签:常用命令   master   git init   comment   远程   com   git   init   mit   

原文地址:https://www.cnblogs.com/hupingzhi/p/12000149.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!