![]() Stage (“add”) and commit this change and push to your remote repo on GitHub. No changes added to commit (use "git add" and/or "git commit -a") " to discard changes in working directory) Your branch is up to date with 'origin/main'. This should look something like this: ~/tmp/myrepo % echo "A line I wrote on my local computer" > README.md Make this new repo your working directory, list its files, display the README, and get some information on its connection to GitHub: cd myrepoġ1.3 Make a local change, commit, and pushĪdd a line to README and verify that Git notices the change: echo "A line I wrote on my local computer " > README.md Remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 Remote: Counting objects: 100% (3/3), done. This should look something like this: ~/tmp % git clone If your shell (Appendix A) cooperates, you should be able to paste the whole bit that we copied above.īut some shells are not (immediately) clipboard aware. This URL should have your GitHub username and the name of your practice repo. Personally, I would do this sort of thing in ~/tmp.Ĭlone myrepo from GitHub to your computer. Take charge of – or at least notice! – what directory you’re in. In section 15, we show other methods that you might prefer in daily life: 11.2 Clone the repo to your local computer
0 Comments
Leave a Reply. |