ignore directories in git using windows
anyone know how i can ignore directories in git using msysgit on windows? ...
anyone know how i can ignore directories in git using msysgit on windows? ...
I'm using SVN right now, and I've used CVS and VSS in the past. SVN is the current favourite in my books, but I've been hearing a lot about git. Of the people that have used git, what are the pros and cons from your experience? ...
When I'm on master, I only have to type 'git push' to push commits to the remote repo. I wish I could do so when I'm on another branch, without specifying the remote name and the branch name. Like that: Now: git push origin experimental:origin/experimental Need: git push ...
What are your favorite git features or tricks, or even workflows? Post one feature, trick, or workflow per answer. ...
Git newbie here, quick question. I mistakenly added files using the command "git add file". I have not yet run "git commit". Is there a way to remove these files from the commit? ...
Treating my repository as a SVN repo, I get: svn co http://myrepo/foo/trunk foo ... foo/ bar/ baz/ -> http://myrepo/baz/trunk Treating it as a Git repo, I get: git svn clone http://myrepo/foo --trunk=trunk --branches=branches --tags=tags ... foo/ bar/ I can clone baz to my local machine elsewhere and add a symlink, but that's...
I'd like to see a series of diffs for a file. I'd settle for simply the log listing restricted to only those entries that modified the file. ...
Hi, I want to use git as a local repository against a remote SVN repository. I installed version 1.6.0.2 from http://code.google.com/p/msysgit/downloads/list. According to the documentation synchronization is done via the command git svn or a separate command wrapper called git-svn Neither of them is available in my installatio...
I have a local git repository which tracks a remote SVN repository via git svn. I have made and committed some changes in the local git repository, but now I'd like to create a branch that reflects SVN HEAD in order to make some changes to the code as it stands in SVN, because I don't want to propagate the changes in my git master to SV...
I'm having trouble finding an open-source IDE with support for Git. Are there any that you could point me to or recommend? ...
When you run git branch -r why the blazes does it list origin/HEAD? For example, there's a remote repo on GitHub, say, with two branches: master and awesome-feature. If I do git clone to grab it and then go into my new directory and list the branches, I see this: $ git branch -r origin/HEAD origin/master origin/awesome-feature Or what...
I am trying to understand if I really have any case for using git/mercurial. The projects I work are java and c# projects, usually with 5-20 people working towards a common goal (the "release"). Most of the developers are professional developers who refactor code all of the time. So where the typical linux kernel has a large number of ...
I am getting 'trailing whitespace' errors trying to commit some files in git. I want to remove these trailing whitespace characters automatically right before I save python files. Can you configure vim to do this? If so, how? ...
I want to add all the files in the current directory to git: git add . error: open(".mysql_history"): Permission denied fatal: unable to index file .mysql_history That's fine. That file happens to be in this directory and owned by root. I want to add all other files. Is there a way to do that without having to manually add each file ...
I have a Git repository which contains a number of subdirectories. Now I have found that one of the subdirectories is unrelated to the other and should be detached to a separate repository. How can I do this while keeping the history of the files within the subdirectory? I guess I could make a clone and remove the unwanted parts of eac...
I have an existing bare git repository located in /home/myaccount/git/project. I am currently using it over ssh from my local machine without any problems. I want to add a second user on the server which only shall access to this git repository (maybe move the repo outside my account folder?). How? Using latest version of git and ubuntu ...
Are there any native Git implementations for Windows that do not require Cygwin? I've become a fan of the TortoiseSVN client, and would really like to see a similar Git client for Windows. Edit: I am also considering Mercurial, but would prefer to check out a few before I make a decision. ...
Here's an example: >git status # On branch master nothing to commit (working directory clean) >git checkout -b test-branch >vi test.c >git add test.c >git commit -m "modified test.c" >vi README >git add README >git commit -m "modified README" Now I want to do a 'git rebase -i' that will let me rebase all commits for this branch. Is th...
Say I have a git repository and I've been working on master, can I retroactively create a branch. For example: A - B - C - A1 - D - A2 - E I want to make it look like this: A - A1 - A2 \ \ B - C - D - E The specific use case is when I've cherry-picked a bunch of commits into an old version branch and it needs to go ...
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 aga...