Tag: commit

How to push a single file change to two branches using tortoise git?

I’m currently making changes to an older version of my app for customers still on that version but I want to push the changes to another branch I’m working on as well. Is there an easy way to do this in tortoise git without having to copy the files over manually to the next branch […]

Find a file history

How do I find in which git commits a certain file was changed? like.. git –when-did-it-change scr/ThatBuggyClass.java 88fa9f (HEAD) last time trying to debug it 99321c another round with ThatBuggyClass …

Uniquely reference a commit in Git when history changes

I have a problem, i like to refer to other commits from within commit messages, which i do with the SHA ID, but i also like to change a previous commit from time to time. When i change a commit, the SHA ID changes, any ideas? is there another way to uniquely refer to a […]

Github branch is ahead by 5 commits, how to fix?

Windows PowerShell Copyright (C) 2009 Microsoft Corporation. All rights reserved. C:\Users\Allen\Documents\GitHub\project2-pd7 [master]> git status # On branch master # Your branch is ahead of ‘origin/master’ by 5 commits. # nothing to commit, working directory clean C:\Users\Allen\Documents\GitHub\project2-pd7 [master]> git push Counting objects: 36, done. Delta compression using up to 4 threads. Compressing objects: 100% (15/15), done. […]

Git pushing to the past fix

One of my coworkers was testing a new feature he was adding and had to reset his windows time to 2 days ago. When he completed his feature he committed and pushed without setting his date back to today… Now the structure of develop is really messed up with my local one up to date […]

Handling git on a shared user account

I’m using git to track changes to a series of system configuration file on a server. These files are owned by the root account (and for various internal enterprise-y reasons, root is the only account on this box). There is a central git server, which all changes made on this system are being pushed to. […]

How to squash a lot of commits automatically?

I have a lot of commits that I want to squash together into one commit. Of course I may replace pick with squash for every commit, but I have a hundreds commits. Is there a way to do this automatically?

git clone doesn't download everything

How can I download everything fom a repository using git clone? Folders that have a special symbol (shown below) aren’t being downloaded. I looked around and saw this command but it didn’t work out for me. What other options are there? for remote in `git branch -r`; do git branch –track $remote; done

How can I transfer the commit history of a repository to another repository?

I’ve spent a few months working on a project. It broke, I started a new project and just transfered the files, but I would like to transfer just the commit history into the new repository/project? I am a little familiar with git. What command line codes would I need to only transfer the commit history?

Github “Pull request” close issue does not work

I have a pull request and i am trying to delete this issue including the special keyword syntax (eg. “resolve #5”) in the body of your Pull Request. Documentation on github say: It’s been possible to close an issue from a commit for quite a while, but some issues take more work than a single […]

Git Baby is a git and github fan, let's start git clone.