Feeds:
Posts
Comments

Archive for the ‘git’ Category

Git: Branch from a tag

In git, you can’t update a tag directly, but you can branch the code to create a new tag. Here’s how you would do that:
First, you need to checkout the tag:
git checkout <tag_name>
Then create a branch:
git branch -b <branch_name>
After you make your changes, commit them (there are a few ways to do this, [...]

Read Full Post »

Git commands

A collection of git commands from various git related posts:
Handling a pull request:
# go to your project directory first
# add account/project
git remote add <account> git://github.com/<account>/<project>.git

# create a new branch
git checkout -b <account>/<branch>

# push new branch to remote repo
# ** checkout new branch first. must be ‘on’ new branch
git push origin <new_branch_name>:refs/heads/<new_branch_name>

# information
git show <branch_name> [...]

Read Full Post »

git checkout

This definitely falls in the duh! category:
If you delete a file and want to restore it to the trunk/master version, for subversion I would do:
svn update
to do the same with git:
git checkout <file>
Seems like this should have been obvious, but I guess I was expecting to find an update or restore or some other git [...]

Read Full Post »

Git and Tagging

Just a quick personal note on how to tag so I don’t have to look it up again. I’m not sure if this is right.?
git tag -a rel_0.0.0git push –tags

Read Full Post »

github and public key

If you haven’t heard, everyone is moving to git. Not really sure why yet, I like svn, but felt like I should probably keep in touch. I have a need to create a Stage generator for Merb, so I thought this would be a good opportunity. Quick note: the Stage generator for [...]

Read Full Post »