github_repositories_of_the_lab
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| github_repositories_of_the_lab [2024/08/09 15:01] – [Interacting with the repositories] 134.190.232.164 | github_repositories_of_the_lab [2024/08/13 11:26] (current) – [Saving changes as commits] 134.190.232.164 | ||
|---|---|---|---|
| Line 55: | Line 55: | ||
| Before anything else, it's good practice to run '' | Before anything else, it's good practice to run '' | ||
| - | If we see | + | If we we're already working on the latest version, |
| < | < | ||
| Line 61: | Line 61: | ||
| </ | </ | ||
| - | we're good to go. | + | and we're good to go. |
| + | |||
| + | If not, you may something along the lines of | ||
| + | |||
| + | < | ||
| + | remote: Enumerating objects: 9, done. | ||
| + | remote: Counting objects: 100% (9/9), done. | ||
| + | remote: Compressing objects: 100% (3/3), done. | ||
| + | remote: Total 6 (delta 4), reused 5 (delta 3), pack-reused 0 | ||
| + | Unpacking objects: 100% (6/6), done. | ||
| + | From github.com: | ||
| + | | ||
| + | Updating cf52972..f843408 | ||
| + | Fast-forward | ||
| + | | ||
| + | 1 file changed, 69 insertions(+), | ||
| + | </ | ||
| + | |||
| + | It tells us in this case that the find_polyA_sites.py script was modified in the last commit or commits that were lacking in our local copy of the main branch, and that our local copy is now updated with those changes. We're good to go. | ||
| Now, let's run '' | Now, let's run '' | ||
| Line 109: | Line 127: | ||
| </ | </ | ||
| - | With '' | + | With '' |
| < | < | ||
| Line 127: | Line 145: | ||
| Our local " | Our local " | ||
| + | |||
| + | < | ||
| + | Enumerating objects: 5, done. | ||
| + | Counting objects: 100% (5/5), done. | ||
| + | Delta compression using up to 8 threads | ||
| + | Compressing objects: 100% (3/3), done. | ||
| + | Writing objects: 100% (3/3), 328 bytes | 328.00 KiB/s, done. | ||
| + | Total 3 (delta 2), reused 0 (delta 0), pack-reused 0 | ||
| + | remote: Resolving deltas: 100% (2/2), completed with 2 local objects. | ||
| + | To github.com: | ||
| + | | ||
| + | |||
| + | </ | ||
| + | |||
| + | A succesfull push! If you check the online GitHub repository now in your internet browser, the file should be updated! | ||
| + | |||
| + | You should now be familiar with the basics of interacting with a GitHub repository. Using git can be far more advanced, with different branches, re-basing etc etc but I'd say for 99% of our usecases this should suffice. | ||
| + | |||
| + | ==== Deleting a repository ==== | ||
| + | |||
| + | Deleting a local copy of your repository is as easy as removing the folder that contains the repository. | ||
| + | |||
| + | For example | ||
| + | |||
| + | < | ||
| + | rm -r gospel_of_andrew | ||
| + | </ | ||
| + | |||
| + | Easy peasy! | ||
github_repositories_of_the_lab.1723226500.txt.gz · Last modified: by 134.190.232.164
