1
|
# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel |
1
2
3
4
|
# tar -zxvf git- 1.8 . 4.2 .tar.gz
# cd git- 1.8 . 4.2
# make prefix=/usr/local all # make prefix=/usr/local install |
1
2
|
# git config --global user.name "Leon Hao"
# git config --global user.email haolulue@ 163 .com
|
1
|
# git config --global core.editor emacs |
1
|
# git config --global merge.tool vimdiff |
1
2
3
|
[root@SK-UAT-MYSQL /]# git config --list user.name=Leon Hao user.email=haolulue@ 163 .com
|
1
|
# git init |
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# See http: //help.github.com/ignore-files/ for more about ignoring files.
# # If you find yourself ignoring temporary files generated by your text editor # or operating system, you probably want to add a global ignore instead: # git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config. /.bundle # Ignore the default SQLite database.
/db/*.sqlite3 /db/*.sqlite3-journal # Ignore all logfiles and tempfiles. /log/*.log /tmp |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# See http://help.github.com/ignore-files/ for more about ignoring files. # # If you find yourself ignoring temporary files generated by your text editor # or operating system, you probably want to add a global ignore instead: # git config --global core.excludesfile '~/.gitignore_global' # Ignore bundler config. /.bundle # Ignore the default SQLite database. /db/*.sqlite3 /db/*.sqlite3-journal # Ignore all logfiles and tempfiles. /log/*.log /tmp # Ignore other unneeded files. doc/ *.swp *~ .project .DS_Store .idea |
1
|
# git add . |
1
|
# git status |
1
|
# git commit -m "add README.MD"
|
1
|
# git log |
1
|
# git checkout -f |
1
|
# git checkout -b testfz |
1
|
# git branch |
1
|
# git mv README.rdoc README.md |
1
|
# git status |
1
|
# git add . |
1
|
# git commit -a -m "add"
|
1
|
# git checkout master |
1
|
# git merge testfz |
1
|
# git branch -d testfz |
1
2
|
# cd ~/.ssh/ # ssh-keygen -t rsa -C "haolulue@163.com"
|
1
2
3
4
5
|
# git remote add origin git@github.com:haoxiaolu/doccenter # git fetch # git commit -a -m "add file"
# git add . # git push |
相关推荐
1、分布式:Git版本控制系统是一个分布式的系统,是用来保存工程源代码历史状态的命令行工具。 2、保存点:Git的保存点可以追踪源码中的文件, 并能得到某一个时间点上的整个工程项目的状态;可以在该保存点将多人...
在jenkins的插件管理中,由于不能联网,需要手动上传hpi文件。在插件管理的高级页签中,选择hpi文件,当报错的时候,看详情提示,hpi上传要有先后顺序。挨个点击上传,没特别好的版本。这个rar里面是全部的有关联的...
在Windows下,如何使用Git LFS上传超过100M的二进制文件到GitHub,Git LFS(Large File Storage) 是 Github 开发的一个 Git 的扩展,用于实现 Git 对大文件的支持, 简单的说,就是如果你想传超过100M的二进制文件...
本软件是Git,版本为2.21安装完成后,可以通过命令行、或者GUI等多种方式下载Git服务器上的程序,如GitHub,操作步骤为:先使用 git clone 【下载链接】将仓库pull下来,接着修改代码后先git add -u(或者git add ....
Git LFS(Large File Storage)用于实现 Git 上传大文件的支持,是 Github 开发的一个 Git 的扩展。
个人github、git学习笔记。包含Github和git的基础命令和介绍。由于网络问题在国外很难插入图片,把源文件的pdf导出版本进行上传。
git filter-branch --force --index-filter 'git rm -r --cached --ignore-unmatch doc/硬件设计/GS03_MB_V3.0设计文件' --prune-empty --tag-name-filter cat -- --all git push origin master --force rm ...
使用git上传代码到github,有详细的文档说明,新手很适用。
Git代码托管工具,以及GitHub的使用,包括怎么将Eclipse的程序上传github上
gitblog-io.github.io, 轻松地将文章发布到github页面 Gitblog( www.gitblog.io )Gitblog是程序员将文章发布到github页面的一种工具。函数:不同用户页面( 组织或者其他页面用户) 之间的switch添加,编辑和删除文章...
1.1 移除错误缓存 1.2 重新提交 2.2 将想要保存的大文件正常添加进 git 2.3 正常进行提交&推送 2.4 补充技巧 2.5 常见问题
必要时,Repo会统一许多Git存储库,上传到修订控制系统,并自动化部分开发工作流程。 回购并不意味着取代Git,只是为了更容易在多个存储库的环境中使用Git。 repo命令是一个可执行的Python脚本,您可以将其放在路径...
git是“分布式“管理方式,开放人员的每台计算机上都有一个“版本控制器”,每个开发人员把自己开发的模块的代码都上传到github上(充当一个远程仓库,类似与“中转站”的作用),其他人可以从github上下载相应的代码...
通过Intellij IDEA图形化的使用Git工具; 关联Intellij IDEA和Github账号; 上传项目至Github; 解决代码冲突; 分支创建,合并,删除
本仓库是Gitter小程序对应的开源仓库,旨在分享...使用git clone git@github.com:huangjianke/Gitter.git cd Gitter使用方法请参考: Taro 安装及使用扫码体验扫码访问小程序:部分页面展示TrendingActivityUserRepo
包含Git的基本操作与GitHub的操作使用软件xmind来打开就可以了
word文档的一些笔记,做的比较粗糙,没有规范化,读者见谅见谅
如何使用 Git 上传本地项目到 github?(mac 版)! 基础的使用解释
一个练习几个git / github工作流程的简单项目。 用说明中的内容替换此文件的内容。 文章:PlayMaker 我看过的 讨论了新的PlayMaker平台及其从国际职业足球(足球)领域到现在个人的扩展。 PlayMaker是位于足球鞋...
使用git进将目上传到gitHub流程,以及怎么在idea中忽略不需要上传的文件,内有详细说明