--> A version control system
Git allows a folder to be tracked 24/7, track any changes made to the folder and create and control versions of the folder
--> Where you can save and manage git repositories
cd
to the the directory that you would like to start trackinggit init
to initialize git --> this creates a .git
folder inside the directorygit status
, this will show any changes made to the directory after the last commit, including new file creation, file edits, and file removals. If there is no change, it will say there is "nothing to commit, working tree clean"git add
to add the files with changes to the staging area, after which you can commit the changes to git --> You can enter git add <file name>
to add individual file to the staging area, or git add .
to add all the files in the directory. The .
indicates "all"git commit
. When you commit, you must(should) add a message indicating which changes are made. This should be a brief explanation of the commit you are making. adding a message can be done by adding -m "description"
to git commit
command. For example, if you want to commit with the message "initial commit", you would enter git commit -m "initial commit"
git log
. This will show a list of commits you have made with basic information such as the commit code, author, and date/time of commitgit remote add origin <github repository url + .git>
--> At the end of the url, you should add '.git'. For example, if the remote url is https://github.com/username/repository1
, you should enter the command git remote add origin https://github.com/username/repository1.git
git push -u origin master
who need help improving their coding skills butterfly locs, daily game solve cross