commit

could not open git/commit_editmsg

…衆ロ難τιáo~ 提交于 2019-12-01 08:42:16
问题 I have a git repository linked to a dropbox folder. Recently, I have switched my laptop to another, and now i can not perform the function "git commit -am". I keep getting this error message: "could not open '.git/COMMIT_EDITMSG': Permission denied. Any ideas? Thanks, Liron 回答1: This is an file permission issue, user you are currently logged on does not have permissions to use the files. If that's your repo, you may try: switching to other user who owns the repo changing the owner of the repo

How do I checkin to local copy AND svn:externals subdirectories in one commit?

情到浓时终转凉″ 提交于 2019-12-01 07:24:21
问题 We have an svn project that also has several plugins in vendor/plugins - all pulled in via svn:externals . I have a commit that spans both the main project and several of these plugins all at once. When I do an svn st it lists all my changed files across all the correct sub directories, but when I try to do an svn ci it only shows files from my local project. How do I make a single commit that encompasses both the local changes and the svn:externals directories too? 回答1: Ok, it looks like it

How do I view the latest commits of a remote Git repository without making a clone first?

馋奶兔 提交于 2019-12-01 06:27:58
I want to get a list of the latest commits on a certain remote Git repository. However, I do not want to create a clone because that takes too long. With SVN, I can simply pass along a username and password. With Git I haven't found an option to do this. Also, is there an XML output option like with SVN? This is probably not exactly what you want, but you could create a shallow clone using the --depth option to git clone . That clones only the last n revisions. It still copies all the content, though. For XML-like formatting you could use a custom log format like this: git log --pretty=format:

Use the commit message in a CVS pre-commit hook

丶灬走出姿态 提交于 2019-12-01 03:36:44
问题 Is it possible to use the commit message in a pre-commit hook in CVS? The CVS server is running remotely, and I access it using pserver . Ideally, I want to allow the commit if the files pass the filter or the commit message contains certain text. I don't have a choice to use another versioning system. 回答1: Here are some useful tutorials to read more: http://durak.org/sean/pubs/software/cvsbook/The-commitinfo-And-loginfo-And-rcsinfo-Files.html http://durak.org/sean/pubs/software/cvsbook/The

How do I view the latest commits of a remote Git repository without making a clone first?

人走茶凉 提交于 2019-12-01 03:12:01
问题 I want to get a list of the latest commits on a certain remote Git repository. However, I do not want to create a clone because that takes too long. With SVN, I can simply pass along a username and password. With Git I haven't found an option to do this. Also, is there an XML output option like with SVN? 回答1: This is probably not exactly what you want, but you could create a shallow clone using the --depth option to git clone. That clones only the last n revisions. It still copies all the

Retroactively sign git commits

吃可爱长大的小学妹 提交于 2019-12-01 03:05:45
问题 Recent versions of git (>= 1.7.9) support signing individual commits with GPG. Is it possible to retroactively sign all commits within a tree? 回答1: retroactively sign all commits within a tree? Yes: add a tag, that you would sign. That is actually the preferred option when it comes to sign commits: sign a all set of them through a tag, rather than signing each one individually. See "How to get pusher's Information in post-receive hooks?". Note (update may 2017) that only Git 2.13.x/2.14 (Q3

Commit to multiple branches at the same time with git

痞子三分冷 提交于 2019-12-01 02:29:07
I have two branches A and B in a project that I am working on. B differs from A by a single commit, which is a section of the code completely independent from what I'm working on for the next while (aka, I will have many commits I want to push to both branch A and B). Is there any way in git that I can commit to both branch A and branch B at the same time, without having to commit it to one branch, checkout the other, and try to cherry pick out the commit(s). You could: make all your commits on A rebase B on top of A (if you haven't pushed B already, that is) That way, B will include all

Commit to multiple branches at the same time with git

别说谁变了你拦得住时间么 提交于 2019-11-30 22:55:44
问题 I have two branches A and B in a project that I am working on. B differs from A by a single commit, which is a section of the code completely independent from what I'm working on for the next while (aka, I will have many commits I want to push to both branch A and B). Is there any way in git that I can commit to both branch A and branch B at the same time, without having to commit it to one branch, checkout the other, and try to cherry pick out the commit(s). 回答1: You could: make all your

SVN Error when committing Access denied: 'foobar' MKACTIVITY MYREPO:

让人想犯罪 __ 提交于 2019-11-30 18:21:34
I'm currently working with Apache and SVN with ActiveDirectory Authentication. The user is using TortoiseSVN client. I should point out that I have 2 repos with same name and different mapping but redirected to the same "user url" since the permissions are the same for both repos. eg 'http://mysrvr/svn/foo/bar/corge' and 'http://mysrvr/svn/foo/corge' or 'http://mysrvr/svn/foo/bar/corge and' 'http://mysrvr/svn/foo/grault/corge' This 2 repos thing is replicated with 8 "repo pairs" and the remaining 7 are working just fine. Here is my error: Commit failed(details follow): access to '/svn/myDir

Can I delete a commit in Subversion?

怎甘沉沦 提交于 2019-11-30 18:20:41
Per accident I committed twice because I forgot to add two files. Can I remove a specific commit from the log? I want to delete commit № 4. The simple answer is "no", because Subversion doesn't know how to resolve the case when you add a commit, someone else updates their checkout, and then you remove the commit from history. There might or might not be a complex answer involving surgery on the Subversion storage. Lazy Badger AFAICS, you have not delete r4, but merge with r5, yes? In general, SVN commit history is immutable, as Sii said - and if you haven't rights delete/create repo - you can