How do I run git rebase –interactive in non-interactive manner?

Is it possible to do following? Make git rebase –interactive to just output standard boilerplate to a file, instead to outputting to a file and opening it in editor. Let the user edit the file. Let user re-run git rebase with the name of edited file. Go on with the usual rebase process. Usecase: scripted […]

Send a pull request on GitHub for only latest commit

I forked a project on github and am successfully making changes to my local master and pushing to origin on github. I want to send a pull request, but only want to include the last commit. The pull request UI on github.com shows the last 9 commits and I don’t know how to filter that […]

How to commit no change and new message?

How can I make a new commit and create a new message if no changes are made to files? Is this not possible since the commit’s code (SHA ?) will be the same?

Best practices for cross platform git config?

Context A number of my application user configuration files are kept in a git repository for easy sharing across multiple machines and multiple platforms. Amongst these configuration files is .gitconfig which contains the following settings for handling the carriage return linefeed characters [core] autocrlf = true safecrlf = false Problem These settings also gets applied […]

What's the difference between Git ignoring directory and directory/*?

I’m confused about what’s the correct way to ignore the contents of a directory in git. Assume I have the following directory structure: my_project |–www |–1.txt |–2.txt |–.gitignore What’s the difference between putting this: www And this? www/* The reason I’m asking this question is: In git, if a directory is empty, git won’t include […]

How can I move a single directory from a git repository to a new repository whilst maintaining the history?

I have inherited a git repository containing multiple projects in separate directories. I’d like to split the repository into new individual repositories, one for each project and then have the master repository contain the projects as submodules. I’d like to do all this whilst maintaining the revision history of the individual projects if possible. I […]

How to apply unmerged upstream pull requests from other forks into my fork?

A project on GitHub that I have a fork of has a new pull requests that I want to pull into my fork that the author has not pulled in yet. Is there a simple way to apply pull request from other forks into my fork? Is there something else here that I am missing?

how to delete all commit history in github?

This question already has an answer here: Make the current commit the only (initial) commit in a Git repository? 13 answers

clone parts of a github project

Possible Duplicate: Is there any way to clone a git repository’s sub-directory only? I’m trying to clone parts of a github project but I can only get the root folder. This is the first time im trying to use github and I just installed tortoisegit, im used to svn and cvs where you could just […]

Ignoring an already checked-in directory's contents?

I have a git repository that’s used only to hold graphics and sound files used in several projects. They are all in one directory without sub-directories. Now I just created a script to copy these assets over from another, structured directory, with several levels of sub-directories. Now I only want the (source) hierarchical file structure […]

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