Github training - Garuk-solutions/knowledge-base GitHub Wiki
GitHub is a web-based hosting service for version control using Git. It is mostly used for computer code. It offers all of the distributed version control and source code management (SCM) functionality of Git as well as adding its own features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, and wikis for every project.
- Basic knowledge of Git
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.
GitHub is a web-based hosting service for version control using Git. It is mostly used for computer code. It offers all of the distributed version control and source code management (SCM) functionality of Git as well as adding its own features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, and wikis for every project.
-
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.
-
GitHub is a web-based hosting service for version control using Git. It is mostly used for computer code. It offers all of the distributed version control and source code management (SCM) functionality of Git as well as adding its own features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, and wikis for every project.
-
Create a GitHub account
-
Create a new repository (personal)
-
Clone the repository
git clone `repository link`
- Create a new branch
git checkout -b `branch name`
- Add files to the staging area
git add .
- Commit the changes
git commit -m "commit message"
- Push the changes to the remote repository
git push origin `branch name`
- Create a pull request
git pull request
- Merge the pull request
git merge `branch name`
- Delete the branch
git branch -d `branch name`
- Delete the remote branch
git push origin --delete `branch name`
- Pull the changes from the remote repository
git pull origin `branch name`
Okay now you have understood how to use Git and GitHub. Let's move on to the language specific training.