Tag: repository

Best Practice for Git Repositories with multiple projects in traditional n-tier design

I’m making the switch from a centralized SCM system to GIT. OK, I’ll admit which one, it is Visual SourceSafe. So in addition to getting over the learning curve of Git commands and workflow, the biggest issue I’m currently facing is how to migrate our current repository over to Git in regards to single or […]

Delete local Git branches after deleting them on the remote repo

I want to have my local and remote repositories always in sync in terms of branches. After a Pull Request review on GitHub, I merge and remove my branch there (remote). How could I fetch this information in my local repository and get Git to remove my local version of the branch as well?

How do I rename a repository on GitHub?

I wanted to rename one of my repositories on GitHub, but I got scared when a big red warning said: We will not set up any redirects from the old location You will need to update your local repositories to point to the new location Renaming may take a few minutes to complete Does anyone […]

Moving a git repository up one hierarchy level

Git beginner question: I have a small private webproject which is versioned locally with msysgit. There is no exterior repository, as it’s only for me, so i can bascially do whatever I want. I’ve had this set up in the project directory, ie in “webroot”. Now a second directory had to be created, placed parallel […]

Upgrading git from the source repository in Ubuntu

I want to upgrade git using the source repository in Ubuntu. As you note, the last stable version is the 2.0.2, but I have the 1.9.4. I cloned the git repo, but I’m not sure how to continue. I want to do that in some way I can understand how to interact with the branches […]

Merge changes from remote github repository to your local repository

I have forked a repository on github some time ago, made a small change and pushed the change back to my github fork. The original repository has changed since. I would like to merge the changes from the original repository to my fork. I am new to both git and github, and I need specific […]

How do I make a Git commit in the past?

I’m converting everything over to Git for my own personal use and I found some old versions of a file already in the repository. How do I commit it to the history in the correct order according the the file’s “date modified” so I have an accurate history of the file? I was told something […]

What's the -practical- difference between a Bare and non-Bare repository?

I’ve been reading about the bare and non-bare / default repositores in Git. I haven’t been able to understand quite well (theoretically) about the differences between them, and why I should “push” to a bare repository. Here’s the deal: Currently, I’m the only one working on a project on 3 different computers, but there will […]

Split large Git repository into many smaller ones

After successfully converting an SVN repository to Git, I now have a very large Git repository that I want to break down into multiple smaller repositories and maintain history. So, can someone help with breaking up a repo that might look like this: MyHugeRepo/ .git/ DIR_A/ DIR_B/ DIR_1/ DIR_2/ Into two repositories that look like […]

How to rebase one Git repository onto another one?

I had one Git repository (A) which contains the development of a project until a certain point. Then I lost the USB stick this repo A was on. Luckily I had a backup of the latest commit, so I could create a new repository (B) later where I imported the latest project’s state and continue […]

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