commit

How to disable pre-commit code analysis for Git-backed projects using IntelliJ IDEA

拈花ヽ惹草 提交于 2019-12-03 01:10:28
I have a project in IntelliJ IDEA, and I'm using Git/GitHub as source control. Each time I try to commit changes, IntelliJ IDEA runs a lengthy code analysis and searches for TODOs. When it finds "problems," it prompts me whether or not I want to review or commit. I don't want the pre-commit code analysis to run, and I don't want IntelliJ IDEA to ask me about the results. I can't seem to find any setting in the regular IntelliJ IDEA project/IDE settings to disable this. How can I disable this? Hawkeye Parker Answer for IntelliJ IDEA 11.1.5: There are persistent check-boxes in the "Commit

Git commit against tag with no branch

微笑、不失礼 提交于 2019-12-03 01:02:19
问题 If I check out a tagged version of my source code without creating a branch, Git indicates that I'm not associated with any branch at all. It's happy to let me make changes and check them in though. Where do those changes go? If I switch back to 'master' they disappear (overwritten by what was in master) and I can't seem to find them again. What gives? If Git lets me commit changes against what's essentially an anonymous branch, surely I can get them back? 回答1: Because your commit isn't on

How to get a list of all Subversion commit author usernames?

此生再无相见时 提交于 2019-12-03 00:23:56
问题 I'm looking for an efficient way to get the list of unique commit authors for an SVN repository as a whole, or for a given resource path. I haven't been able to find an SVN command specifically for this (and don't expect one) but I'm hoping there may be a better way that what I've tried so far in Terminal (on OS X): svn log --quiet | grep "^r" | awk '{print $3}' svn log --quiet --xml | grep author | sed -E "s:</?author>::g" Either of these will give me one author name per line, but they both

How to add multiple files to Git at the same time

不问归期 提交于 2019-12-03 00:07:01
问题 This will be my first git use. I have added new files ( a lot ) to the folder/project ( git local repository). I went through online tutorials and forums and see i can do git commit -a So i go to the base folder of the repository and do a sudo git commit -a But then, some screens comes up and asks me to add a comment which i do. i do not know how to proceed or exit. I do not want to mess up so i did ctrl + Z and did not do anything. Can you guys please outline the commands i need to use? git

How commit all files except one with SVN

百般思念 提交于 2019-12-02 23:55:41
I want to commit all modified files except one using Subversion. So here is the scenario: $ svn st M file1 M file2 M file3 M file4 I can do something like this: svn ci -m "Commit 1" file1 file2 file3 svn ci -m "Commit 2" file4 But when a large number of files, I'm trying to simplify my work: svn ci -m "Commit 1" `svn st | awk '{print $2}' | grep -v file4` svn ci -m "Commit 2" file4 This solution is very fragile, because this scenario not works: $ svn st M file1 M file2 D file3 A + file4 I think that SVN does not have a built-in solution for my problem, but I'm not sure. Any other approach?

How can I fix a reverted git commit?

一个人想着一个人 提交于 2019-12-02 23:20:43
I've committed a bunch of changes to a repository, and they were reverted by someone else (they compile on windows but not on linux). I think that the changes are still in the history, but how can I get those changes back, fix them, and then resubmit? Have you tried reverting the revert? They reverted your commit using git revert <your commit id> The revert itself is a commit and has its own commit id. So now you need to do git revert <the commit id of his revert-commit> You can try reverting the reverts, using git revert . You can also restore the files from your commit using git checkout .

View already-committed Git merge in external 3-way diff tool

这一生的挚爱 提交于 2019-12-02 20:07:53
Is there any way to view a merge that has already been committed in a 3-way diff? If a huge merge between branches was committed 3 weeks ago, is there any way I can see a 3-way diff of it in an external diff-tool like BeyondCompare3? I'm looking for just the files changed in the merge commit . Bonus if I could get it to only show me the conflicts and anything manually changed, as opposed to seeing the entire difference of a file between the two branches. I wouldn't mind settling for a 2-way diff if the left side had the <<<<< ===== >>>>> conflict markers and the right side was the committed

What is “UserInterfaceState.xcuserstate” file in Xcode project?

戏子无情 提交于 2019-12-02 20:03:45
I use svnX. When importing project, I check "no ignore" option. (for importing libOAuth.a, ...) But one file is causing a small problem. UserInterfaceState.xcuserstate What is this file? Can I ignore this file? Is it important? Should I commit this file? What is this file? You can open it in property list editor and have a look -- It stores things like your workspace/project document layouts, nothing you would lose sleep over if lost. Can I ignore this file? You would ignore it in all but exceptional cases. It's easily reconstructed, and should be considered local to your system's user account

How do you “rollback” last commit on Mercurial?

帅比萌擦擦* 提交于 2019-12-02 19:54:50
I have a Mercurial repository that I use in local only... It's for my personal usage (so I don't "push" anywhere). I made a commit with 3 files, but after that I understood that I should do commit 4 files... Is there a way to "rollback" my last (latest, only one) commit, and "recommit" it with the correct files? (I don't know why, but my " Amend current revision " option is not active, so I can't use it...) You just need this command: hg rollback See: http://hgbook.red-bean.com/read/finding-and-fixing-mistakes.html . (Technically, this is deprecated as of version 2.7, August 2013, but I've yet

Git push everything to new origin

烂漫一生 提交于 2019-12-02 19:00:25
I deleted my previous git origin, and created a new one. I did git add . and git commit. But it will update changes, how do i push everything into the new origin git remote add origin <address> git push origin <branchname> (works with git 1.8.4) If you want to push all branches at once: git push <URL> --all To push all the tags : git push <URL> --tags Hmmmm I just did this. I am not sure if you did exactly the same but I had a different method. I setup a bare repo on "newserver" (using ssh). Had the full clone of the repo on my laptop. I then did: git remote set-url origin "newservers url" git