Git for beginners

The content is from this youtube tutorial where it covers how to use SourceTree, Github, and terminal from VScode to manage the project.

Before creating repository on Github

git init
Then register your username and email.
git config –glob…


This content originally appeared on DEV Community and was authored by angelayoon

The content is from this youtube tutorial where it covers how to use SourceTree, Github, and terminal from VScode to manage the project.

Before creating repository on Github

git init
Then register your username and email.
git config --global user.name "(your name)"
git config --global user.email "(your email address)"

Git is basically putting the current version of your project in a time capsule.
git status command shows the files that are untracked, meaning the files just created by you.
You can put the current state of files in the time capsule using the command, git add -A.
The changes to be committed will be shown when you type git status again.

You bury the time capsule using git commit -m "First Commit"

In order to push your commit the changes to the online repository, use git remote add origin https://github.com/angelayoon/PETase-igemcolab-database.git Origin is the default name of the master branch and you can change its name. Then git push -u origin master push the changes to the cloud repository(origin) on master branch.

When you created repository and want to commit the progress on the existing github


This content originally appeared on DEV Community and was authored by angelayoon


Print Share Comment Cite Upload Translate Updates
APA

angelayoon | Sciencx (2021-08-06T19:51:26+00:00) Git for beginners. Retrieved from https://www.scien.cx/2021/08/06/git-for-beginners/

MLA
" » Git for beginners." angelayoon | Sciencx - Friday August 6, 2021, https://www.scien.cx/2021/08/06/git-for-beginners/
HARVARD
angelayoon | Sciencx Friday August 6, 2021 » Git for beginners., viewed ,<https://www.scien.cx/2021/08/06/git-for-beginners/>
VANCOUVER
angelayoon | Sciencx - » Git for beginners. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/06/git-for-beginners/
CHICAGO
" » Git for beginners." angelayoon | Sciencx - Accessed . https://www.scien.cx/2021/08/06/git-for-beginners/
IEEE
" » Git for beginners." angelayoon | Sciencx [Online]. Available: https://www.scien.cx/2021/08/06/git-for-beginners/. [Accessed: ]
rf:citation
» Git for beginners | angelayoon | Sciencx | https://www.scien.cx/2021/08/06/git-for-beginners/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.