Learning git for our project version control and files management
There are two things in this learning one is git, and the other one is Github.
Git is a version control system that lets you manage and keep track of your source code history. GitHub is a cloud-based hosting service that lets you manage Git repositories. If you have open-source projects that use Git, GitHub is designed to help you better manage them.
Generally, as project members, we use GitHub to save our project files in the cloud and control the version. Now the question is how we can do it?
GitHub:
Just go to the GitHub website and sign up if you're not a member. Or sign in if you already have an account.
Now, you need to create a repository. You can create it from GitHub or by the command line. If you're a beginner, then for simplicity, create a repository from GitHub profile.
- Install Git from their website. During installation on the Select Components tab, marks Git Bash Here and Git GUI Here for the simplicity of your system.
- Create or open a folder where contains the project files you want to upload on GitHub.
- Finally, from that folder right click on the mouse and select Git Bash Here.
git init
git add .
git commit -m "YOUR UPDATE TEXT"
git remote add origin YOUR_REPOSITORY_LINK
git push origin master
git config --global user.name "FIRST_NAME LAST_NAME"
git config --global user.email "MY_NAME@EXAMPLE.COM"
No comments