Feeds:
Posts
Comments

Posts Tagged ‘version control’

Ever want to checkout a new git branch from another branch without setting up tracking? Here is the longhand way: git checkout old-branch git branch new-branch git checkout new-branch But there is a quicker way: git checkout -b new-branch old-branch … which does the same thing, albiet in one command.

Read Full Post »

One of those really handy things to remember…  When git “tracks” a branch, it basically sets up an entry in .git/config which tells git what to do with push and pull.  For example: I had a remote branch called Task/Round3.3. I wanted to work on it locally, but have push and pull work right. So [...]

Read Full Post »

Here is a nice little tidbit I ran across some time ago…  Ever delete a bunch of files from a git working copy, and then had to go in and tell git that you meant to delete them?  For example: [jason@dc40 AppStruct]$ git status # On branch master # Changed but not updated: # (use [...]

Read Full Post »

You may be aware of git add . But did you know this: adds all the files. Use with care (only after git status, for example). adds and deletes all KNOWN files. This is great if you added and removed or renamed files.

Read Full Post »

Follow

Get every new post delivered to your Inbox.

Join 28 other followers