by Horatiu Dan
AbstractThe purpose of this post is to provide a brief and straightforward hands-on introduction to Git, first basic and mostly used commands.
It will the following:
How to create a new Git repository The basic operations when working with the local repository – check status, add, commint, change, revert How to make the local repository visible by synchronizing to a remote one (GitHub) Git InstallationGit can be downloaded from here.
Sample ProjectIn this post, a simple Java project called ‘gitintro’ is created and published to GitHub. Its few files can be seen in Appendix A.
Command line will be used.
Create – git initA local folder may be transformed into a project repository by the git init command from inside it and thus, a new Git Repository is created.
c:\_work\git\gitintro>git init Initialized empty Git...