Git command line

# 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

时间: 2024-10-29 11:57:12

Git command line的相关文章

fuck--Fix git command line spelling errors GitHub

修复Git输入错误,挺有意思.git命令关键字如果输入错误,会提示最接近的正确关键字,如果提示内容是你想要的,输入'fuck',就能执行了. GitHub源码.源码生成exe,windows上运行. 使用方法readme中.

git command line instructions

echo "# spring-boot-apollo-demo" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/lixyu/spring-boot-apollo-demo.git git push -u origin master 原文地址:https://www.cnblogs.c

git [command line] fatal: Authentication failed for

fatal: Authentication failed for https://www.jianshu.com/p/8a7f257e07b8 git.exe fetch -v --progress "origin" 解决方法如下: git config --system --unset credential.helper 终于解决“Git Windows客户端保存用户名与密码”的问题 - dudu - 博客园http://www.cnblogs.com/dudu/archive/20

【转载】Data Science at the Command Line

Data Science at the Command Line Data Science at the Command Line is a new book written by Jeroen Janssens. This website contains information about the upcoming workshop in London, the webcast from August 20th, instructions on how to install the Data

Powerful Bash-style command line editing for cmd.exe

https://mridgers.github.io/clink/ Clink Download v0.4.8 ZIP (portable) EXE (installer) Overview Clink combines the native Windows shell cmd.exe with the powerful command line editing features of the GNU Readline library, which provides rich completio

Xcode Command Line Tool 介绍

Xcode Command Line Tool 1. MAC Yosemite安装Xcode Command Line Tool 确保已经安装有git,先打开Xcode,file->project->os x application -> Command Line Tool,如果已经存在,就不用安装了. 如果没有,就安装:在终端输入xcode-select --install, 就会弹出相应的弹出窗口,选择安装即可,大概3分钟就可以安装完成了. 2.介绍 类似于windows的控制台应用

如何过Command Line来编译并打包自己的Ubuntu项目

前段时间有个开发者想通过命令行的方法来编译并打包自己的项目.这里我们来介绍一下该如何做: 1)打包自己的qmlproject项目 我们可以通过如下的命名: /usr/bin/rsync -avh --exclude .bzr --exclude .git --exclude .hg --exclude .svn --exclude '*.qmlproject' --exclude '*.user' --exclude tests --exclude Makefile --exclude .exc

iOS - Xcode command line tools

1.Xcode command line tools 安装 如果你不是一名 iOS 或 OS X 开发者,可以跳过安装 XCode 的过程,直接安装 Xcode command line tools. 1)从 App store 或苹果开发者网站安装 Xcode. 2)紧接着,安装 Xcode command line tools,在终端中运行以下命令. # 安装 Xcode command line tools $ xcode-select --install 运行命令后,按照指引,你将完成

几分钟打造超级好看又好用的zsh command line 环境

source: https://www.pexels.com/photo/office-working-app-computer-97077/ 注:这篇适用于用MAC 开发的developer 身为程式开发者,很大一部分的时间是在用command line 做事,如果能把command line 调整成好用又酷炫的模样,不只是效率提升非常多,用起来爽度也比较高 像下面这样子的command line 是不是比内建的有意思多了? 图片来源:https://github.com/bhilburn/p