Quantcast
Channel: Everyday I'm coding » git-commit
Browsing all 7 articles
Browse latest View live

How to undo last Git commit ?

I accidentally added the wrong directory containing my files in git. Instead of adding a .java file, I added the directory containing the .class file. How can I undo this action? Solution:...

View Article



How to undo last Git commit ?

I accidentally added the wrong directory containing my files in git. Instead of adding a .java file, I added the directory containing the .class file. How can I undo this action? Solution:...

View Article

How to delete a “git commit” ?

I would like to know how to delete a git commit. By “delete” I mean it is as if I did not do that commmit and when I do a git push in the future, my changes will not push to the remote branch. I read...

View Article

GIT revert to previous commit… how?

If I do “git log” and get the following output: [root@me dev]# git log commit a867b4af366350be2e7c21b8de9cc6504678a61b` Author: Me Date: Thu Nov 4 18:59:41 2010 -0400 blah blah blah... commit...

View Article

Removing multiple files from a Git repo that have already been deleted from disk

I have a Git repo that I have deleted four files from using rm (not git rm), and my Git status looks like this: # deleted: file1.txt # deleted: file2.txt # deleted: file3.txt # deleted: file4.txt How...

View Article


What is the Sign Off feature in Git for?

What’s the point of the Sign Off feature in Git? git commit --signoff When should I use it, if at all? Solution: Sign-off is a requirement for getting patches into the Linux kernel and a few other...

View Article

git: Your branch is Ahead by X commits

How does this actually come about? I am working in one repo by myself at the moment, so this is my workflow: 1- change files 2- commit 3- repeat 1-2 until satisfied 4- push to master Then when I do a...

View Article
Browsing all 7 articles
Browse latest View live




Latest Images