Git and Github ., GitGithub.
Git is a free, open-source distribution version for agile and efficient processing of any small or large projects. The biggest difference between distributed and centralized systems is that developers can mention local systems. Each developer copies a complete GIt repository on a local disk through cloning.
Features of Git:
1. Clone the complete Git Repository from the server to the disk.
2. Create branches and modify codes on your computer for different development purposes.
3. Submit code for the branch you created.
4. You can also create a branch to modify the code.
The difference between Git and Github.
Git is a software that maintains your historical code in the. git folder. After commands are run on the remote link and user information, git can help you push the submitted code to a remote repository or fetch the code from the remote repository to the local.
Github is a git-based project hosting platform that provides a web interface on which you can create a Resource Repository to store your project. You can create a Resource Warehouse locally or on the server to synchronously update the project with the remote github through shell commands or graphical user interfaces to manage the project.
Linux commands
1. mkdir name: Create a folder.
2. touch name: create a document.
3. echo '000000'> a.txt: create a document with content.
4. rm a.txt: Delete the document.
5. rmdir name: delete a folder.
6. cd pathname: Switch disk.
7. cd...: return the upper level.
8. clear: clear the screen.
9. cat a.txt: view the file content.
10. ls: view the file list in the current directory.
Git command line command.
1. git clone url: clone a remote repository to your local device.
2. git status: view the current status.
3. git add FileName | git add.: add all modified files.
4. git commit-m'note '.
5. git push origin master push to remote.
6. git pull is well-known: pull the code.
7. git branch-a: view all branches.
8. git checkout master: Switch Branch