Skip to content

Instantly share code, notes, and snippets.

@KetchCyork
Created March 10, 2018 17:40
Show Gist options
  • Save KetchCyork/9ee65f748221a8bc984e3a9aa03baf54 to your computer and use it in GitHub Desktop.
Save KetchCyork/9ee65f748221a8bc984e3a9aa03baf54 to your computer and use it in GitHub Desktop.
Christophers-MacBook-Pro:repo christopheryork$ git status
fatal: Not a git repository (or any of the parent directories): .git
Christophers-MacBook-Pro:repo christopheryork$ cd kmsprint2
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git remote -v
origin https://github.com/KetchPartners/kmsprint2.git (fetch)
origin https://github.com/KetchPartners/kmsprint2.git (push)
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git branch cyork5
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git checkout cyork5
Switched to branch 'cyork5'
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git branch
* cyork5
master
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git status
On branch cyork5
Untracked files:
(use "git add <file>..." to include in what will be committed)
docs/testpage.md
nothing added to commit but untracked files present (use "git add" to track)
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git add docs/testpage.md
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git status
On branch cyork5
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: docs/testpage.md
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git commit -m 'added test pahe'
[cyork5 14e1631] added test pahe
Committer: Christopher York <christopheryork@Christophers-MacBook-Pro.local>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:
git config --global --edit
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1 file changed, 7 insertions(+)
create mode 100644 docs/testpage.md
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git config --global --edit
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git config --global user.name "KetchCyork"
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git config --global user.email cyork@ketch.partners
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git status
On branch cyork5
nothing to commit, working tree clean
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git reset --hard HEAD
HEAD is now at 14e1631 added test pahe
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git status
On branch cyork5
nothing to commit, working tree clean
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git status
On branch cyork5
nothing to commit, working tree clean
Christophers-MacBook-Pro:kmsprint2 christopheryork$ git status
Command for starting Jekyll web server - bundle exec jekyll serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment