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

Git command line

时间:2015-04-10 17:24:04      阅读:110      评论:0      收藏:0      [点我收藏+]

标签:

# Pull the repo from master

git pull

# Create branch for myself in local

git branch john/jenkins_code

# switch to myself branch of local

git checkout john/jenkins_code


# New file to wanted path and add the file to git branch

git add jenkins

# Get branch status

git status

# Commit changes to local branch ,, format git commit -a -m "<package name>: fix [bug number], comments for the changes"

git commit -a -m "intial file"


# Get log info

git log


# Get changes by changed id (changed id can be got from git log)

git show 00deef2edc1e03781bb2a578b81ce27ade46dfd

# Push local branch to origin

git push origin john/jenkins_code

 

Git command line

标签:

原文地址:http://www.cnblogs.com/root-wang/p/4414684.html

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