![]() ![]() A repository is basically a folder for all of you files. Push the changes in your local repository to your shiny new GitHub account and GitHub Desktop installed, you are ready to create your first repository. # To remove this commit and modify the file, use 'git reset -soft HEAD~1' and commit and add the file again. $ git commit -m "Move file to new directory" # Commits the tracked changes and prepares them to be pushed to a remote repository. " to unstage) > # > # renamed: /old-folder/image.png -> /new-folder/image.png # Displays the changes staged for commitĬommit the file that you've staged in your local repository. $ git status > # On branch YOUR-BRANCH > # Changes to be committed: > # (use "git reset HEAD. Use git status to check the changes staged for commit. # To unstage a file, use 'git reset HEAD YOUR-FILE'. # Adds the file to your local repository and stages it for commit. This will delete, or git rm, the file from the old location and add, or git add, the file to the new location. Stage the file for commit to your local repository. " to include in what will be committed) > # > # /NEW-FOLDER/IMAGE.PNG > # > # no changes added to commit (use "git add" and/or "git commit -a") " to discard changes in working directory) > # > # deleted: /OLD-FOLDER/IMAGE.PNG > # > # Untracked files: > # (use "git add. " to update what will be committed) > # (use "git checkout. $ git status > # On branch YOUR-BRANCH > # Changes not staged for commit: > # (use "git add/rm. Use git status to check the old and new file locations. On your computer, move the file to a new location within the directory that was created locally on your computer when you cloned the repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |