Skip to content

Instantly share code, notes, and snippets.

@iateadonut
Created August 20, 2015 14:11
Show Gist options
  • Save iateadonut/5b353bc96e55e2488477 to your computer and use it in GitHub Desktop.
Save iateadonut/5b353bc96e55e2488477 to your computer and use it in GitHub Desktop.
dan@danwork2:/var/www/website > git status
On branch destined
nothing to commit, working directory clean
dan@danwork2:/var/www/website > git log
commit a950eb272ee5455225b0a43101ede24aa4ea5317
Author: dan <daniel.ahern@co.com>
Date: Thu Aug 20 23:00:06 2015 +0900
I do not know what this is
commit 8c3eafc746c96de7297608189ab8e501f38811de
Author: Exults, Inc <admin@co.com>
Date: Thu Aug 20 09:22:01 2015 -0400
.htaccess redirect www to info.website.com (WP site)
dan@danwork2:/var/www/website > git checkout 8c3eaf
Note: checking out '8c3eaf'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 8c3eafc... .htaccess redirect www to info.website.com (WP site)
dan@danwork2:/var/www/website > git status
HEAD detached at 8c3eafc
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: laravel/resources/views/tickets/inline/stage-due-date.blade.php
modified: laravel/resources/views/tickets/new-stage.blade.php
no changes added to commit (use "git add" and/or "git commit -a")
dan@danwork2:/var/www/website > git checkout a950eb2
error: Your local changes to the following files would be overwritten by checkout:
laravel/resources/views/tickets/inline/stage-due-date.blade.php
laravel/resources/views/tickets/new-stage.blade.php
Please, commit your changes or stash them before you can switch branches.
Aborting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment