#git
14 posts tagged git. Clear filter
-
How to Tag and Push a Release with Git
Set the -a and the -m flags like so git tag -a v1.0.0 -m "Note about the release goes here" Then to push the tag to a repository git push origin --tags And that's it! Here are the docs...
-
How to Recover a Mistakenly Deleted Branch
Workflow git checkout -b newbranchname do some work and commit changed git checkout master git branch -d newbranchname doh... i meant to merge first Fortunately, you can easily recover from this...
-
Git Feature Branch Naming Strategy
There are only two hard things in Computer Science: cache invalidation and naming things. -- Phil Karlton Typically, we have three main branches at any given time in a project lifecycle. Master is...
-
Git Untrack Already Tracked Files
To remove files that are currently being tracked by git, you have to remove them from the "cache". Note, doing this will NOT delete the file on your local machine. It will still be there but not be...
-
Git: How to Delete a Branch with an Invalid Name
If you've named a branch beginning with two dashes "--", you're sort of in trouble because git interprets your branch name as a switch/flag. You can skip switches all together by supplying two...
-
How to Remove Your Last Git Commit
Remove your last commit (if you haven't pushed yet) To see changes that have been committed and their position in HEAD And to undo your previous reset and advance the cursor to the reference...
-
Installing Ruby on Rails 3, MySQL, Git, Ruby Enterprise Edition, Passenger (Mod_Rails) on Ubuntu with Rackspace Cloud.
Short and sweet. Here all the commands I run in this order to set up a brand new box. It usually takes about 10 - 15 minutes on a 256 MB RAM instance. Compiling Ruby Enterprise Edition, which is...
-
Have Git Email Committers After Pushes
You need a Mail Transfer Agent MTA on the server. The easiest way is to install Sendmail, which Git uses by default. Remember that /etc/hosts file needs the ip address to map to the domain name...
-
Setting Up Users, Permissions and Groups for SSH Access to a Shared Git Repository
If you are having permission problems using git, such as There are a couple thing you can do to remedy the situation, before moving to a full on git server like gitosis. Create your users and add...
-
Very Basic Git Workflow
Very, very basic git workflow
-
Working with Branches in Git
Show all the branches Create a new branch Use that branch Pushing the new branch to a remote server Pulling that branch down on another machine Listing all branches on other machine Updating other...
-
Non Standard Port Number with SSH and Git
Here is an example using the port 4567 to connect with over ssh and git
-
git checkout -- file-in-question.oh-my
Problem: using git and one file, like your db/schema.rb, is out of whack with the latest branch. If you run git pull and you get a failed merge and no update. You can of course, edit the conflicts...
-
Setting up a new ubuntu server with apache2, php, ruby on rails, rubygems, mysql, and git
Here are a list of commands to get up and running with Apache2 with Phussion Passenger for Rails, PHP5, MySQL5, Ruby on Rails with Gems, and the source control software Git. I think that this is a...