Restoring a Deleted Commit in git
Not often needed. But this tutorial will show you how to restore a commit that you have deleted in Git. Suppose we have two commits so far… And then suppose, we have deleted the “add...
read moreHow to Sign Up for Free Git Repository
For simple development work, it is good to get source code in a free Git repository. GitHub is very popular and well known. They provide free unlimited public repositories with unlimited...
read moreGet git to track empty directory
Git does not track empty directories. In order to get git to track empty directory, you have to put a file in there. By convention, people put a file .gitkeep. The file can be empty.
read moreForgot rsa passphrase?
If you forgot your rsa passphrase, you have to regenerate the keys. View tutorial here. If you are using your rsa keys to connect to GitHub, then you have to log into GitHub.com and go to...
read moreHow to use git clean
The “git clean” command deletes untracked files from your git project. It actually destroys the file from the working directory and you will not be able to recover them from the...
read moreShould .gitignore file be committed?
In general, yes. The project level .gitignore file should be committed to the repository. The project level .gitignore file lives in the root of your git project and contains lines of list of files...
read moreReverting Back Changes in Git
In this tutorial, we will show you how to revert back changes with Git, including … discarding changes made in your working directory unstaging changes made in the staging index amending a...
read moreWhy the Double Dash in Git Checkout?
You may be wondering why there is a double dash in the use of the git checkout command as in … git checkout — index.html when you want to revert back a change to index.html file in your...
read moreVideo Tutorials for Learning GIT for Beginners
Here are some good video tutorials for learning GIT for beginners… This one is about Git in relation to GitHub… CodeSchool has a beginner GIT course here in video format. The intro...
read moreAll contents are opinions and are copyrighted and may contain display ads and ad links for which site may receive revenues from.
See Terms of Use and Privacy Policy.