Work on the current change (see also: git help everyday ) Init Create an empty Git repository or reinitialize an existing one Start a working area (see also: git help tutorial )Ĭlone Clone a repository into a new directory These are common Git commands used in various situations: Read docs using the help command or man command: Summing upĪnd that is how you install the git command on Alpine Linux. The entire Pro Git book, written by Scott Chacon and Ben Straub and published by Apress, is available free here or to purchase here. $ git commit -m "Fixed CVE-42" Get Pro Git book In this example diff of what is staged but not yet commited:įinally, commit your staged content as a new commit with description: Let us diff of what is changed but not staged right now: One can unstage a file while retaining the changes in working directory. Here is how to add a file to your next commit (stage): Want to see staged file for your next commit? Try: We can initialize an existing directory as a Git repository as follows: Remote: Total 1604 (delta 0), reused 1604 (delta 0) Let us clone repo located at onto local machine. $ git config -global user.email coloring options for ease of use: $ git config -global user.name "Vivek Gite" We can setup user info used across all local repos.
0 Comments
Leave a Reply. |