我在过去一小时内改变了一些事情,并一步一步地提交了它们,但我刚刚意识到我忘了在一些提交之前添加一个已更改的文件.
日志看起来像这样:
GIT TidyUpRequests u:1 d:0> git log
commit fc6734b6351f6c36a587dba6dbd9d5efa30c09ce
Author: David Klein <>
Date: Tue Apr 27 09:43:55 2010 +0200
The Main program now tests both Webservices at once
commit 8a2c6014c2b035e37aebd310a6393a1ecb39f463
Author: David Klein <>
Date: Tue Apr 27 09:43:27 2010 +0200
ISBNDBQueryHandler now uses the XPath functions from XPath.fs too
commit 06a504e277fd98d97eed4dad22dfa5933d81451f
Author: David Klein <>
Date: Tue Apr 27 09:30:34 2010 +0200
AmazonQueryHandler now uses the XPath Helper functions defined in XPath.fs
commit a0865e28be35a3011d0b6091819ec32922dd2dd8 <--- changed file …Run Code Online (Sandbox Code Playgroud) 我每隔几分钟就会将我的代码检查到一个Git分支中,并且评论最终会变成"Everything broken again again"和其他荒谬.
然后,每隔几分钟/小时/天,我会做一个真正的评论,比如"修正了第22,55号错误".我如何区分这两个概念?我希望能够删除所有我的频繁提交,然后离开严肃的提交.
如何配置git和gitolite以允许特定用户只更改特定目录中的文件?
例如,原始主分支中的文件:
/dir1/
/dir2/file1
/dir2/file2
/dir3/file1
Run Code Online (Sandbox Code Playgroud)
用户kathrine,只允许更改/dir2/file1和/dir2/file2
$kathrine: git clone git@example.com:test.git
Run Code Online (Sandbox Code Playgroud)
结果是:
/dir2/file1
/dir2/file2
Run Code Online (Sandbox Code Playgroud)
是否有任何per-dir指令,gitolite.conf或者我是否应该为此用户配置git with new branch?
我只是不希望图形设计师有权访问源代码文件.
我在github上分叉了一个项目.
我在我的主分支上提交了1,2,3,4和5.
我想提交提交2和5作为上游的拉取请求,这样当上游接受,并且我与上游同步我的分支时,我没有任何冲突.
我可以通过多种方式做到这一点?