![]() ![]() Use other branches for development and merge them back to the master branch. The master branch is the “default” branch when a repository is created. 9 fa50b4 master -> masterīranches are used to develop new features or modify codes isolated from each other. Total 2 ( delta 1 ), reused 0 ( delta 0 ) remote: Resolving deltas: 100 % ( 1 / 1 ), completed with 1 local objects. Writing objects: 100 % ( 2 / 2 ), 236 bytes | 0 bytes / s, done. Compressing objects: 100 % ( 2 / 2 ), done. Delta compression using up to 16 threads. txt file 1 file changed, 0 insertions ( + ), 0 deletions ( - ) delete mode 100644 update. txt rm 'update.txt' $ git commit - m "Remove update.txt file" update. Remove a file using git rm git rm $ git rm update. Writing objects: 100 % ( 2 / 2 ), 271 bytes | 0 bytes / s, done. ![]() txt file 1 file changed, 0 insertions ( + ), 0 deletions ( - ) create mode 100644 update. ![]() txt $ git commit - m "Adding update.txt file" update. Īdd a file, commit and pull with git add, git commit and git pullĭon’t forget to pull to download the latest changes before pushing To add a file (a change) to your local index with git add git add To actually commit these changes with git commit git commit - m "message" To send those changes to your remote repository with git pull git push https :/ / github. com / SouthGreenPlatform / TOGGLE - DEV * branch master -> FETCH_HEAD Already up - to - date. Update your copy of repository with the version on remote server git pull https :/ / github. Update the downloaded repository using the git pull command remote : Compressing objects: 100 % ( 124 / 124 ), done. git #Example $ git clone https :/ / github.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |