How to create a local repository with git to provide version control
Let’s say that you just want use git to do version control of some files on your hard disk. You don’t need to create a repository on a server or in the cloud. Just install git on...
read moreHow to commit a file without staging it in git
For simple scenarios, you can save a bit of typing by committing modified files in git without needing to explicitly stage them first. Suppose you are constantly changing a file (such as app.js) and...
read moregitk – View git logs visually using a graphical user interface (GUI)
Forget about remembering all the flags and options for “git log”. Next time, try typing “gitk” at the command line. It brings up gitk, a graphical user interface for...
read moregit vocabulary
Staging Area – place where you put your changes to be stage and get ready to be committed. For historical reason, this is also known as the “index”. “git add” puts...
read moreSome videos on learning git
Here are some videos found on the web on learning git … Webcast “The Basics of Git and GitHub” (July 2013) by GitHub Training and Guides … Jessica Kerr’s talk at JDD...
read moreWhat does git reset do?
git reset kind of rolls thing back. How exactly it rolls things back depends on which of these three you do … git reset --soft git reset git reset --hard Don’t do the last command,...
read moreDoes git add do recursively?
Let’s say you do the git command … git add . or git add -A . See what is the difference between the two commands. The . means is the <pathspec> for the current directory. We...
read moreWhat is the difference between “git add .” and “git add -AR...
If there are only changed or new files, then there is no difference between … git add . and git add -A . The command “git add” adds files to the index to prepare the content staged...
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.