TEL + GitHub
Visit our official GitHub organization
GitHub Using the Command Line
-
To check which files are changed in your local repository:
git status
- Now you can add the files to the local git for future commit. To add all files, use:
orgit add .
To add special file use:git add --all
git add file_name
-
The next step is to package the files into a commit. You do this with the following command:
The message at the end of the commit command should explain what the commit contains. For example, you can say "My first commit" or "Fixing bug in the display_image() function" etc.git commit -m "your_message"
-
Next you can check for any changes in the github repository from your teammates:
git pull
- Finally, you need to push the code from your local computer to the remote repository on GitHub:
This command will push the changes to the remote repository.git push
Version 1.0 (21 March, 2022)
Initial Release