How do I show the changes which have been staged?

It should just be: –cached means show the changes in the cache/index (i.e. staged changes) against the current HEAD. –staged is a synonym for –cached. –staged and –cached does not point to HEAD, just difference with respect to HEAD. If you cherry pick what to commit using git add –patch (or git add -p), –staged will return what is staged.

Found a swap file by the name

Looks like you have an open git commit or git merge going on, and an editor is still open editing the commit message. Two choices: Find the session and finish it (preferable). Delete the .swp file (if you’re sure the other git session has gone away). Clarification from comments: The session is the editing session. You can see what .swp is being used by entering … Read more

Git push won’t do anything (everything up-to-date)

git push doesn’t push all of your local branches: how would it know which remote branches to push them to? It only pushes local branches which have been configured to push to a particular remote branch. On my version of Git (1.6.5.3), when I run git remote show origin it actually prints out which branches are configured for … Read more

Pushing to Git returning Error Code 403 fatal: HTTP request failed

I just got the same problem and just figured out what’s cause. Github seems only supports ssh way to read&write the repo, although https way also displayed ‘Read&Write’. So you need to change your repo config on your PC to ssh way: edit .git/config file under your repo directory find url=entry under section [remote “origin”] change it from url=https://[email protected]/derekerdmann/lunch_call.git to [email protected]/derekerdmann/lunch_call.git. that … Read more