I’m getting a bit confused with Git!
- I cloned a repo on GitHub to a local drive.
- I made some changes and committed to my local repo
- At this point, I couldn’t figure out how to clone my local repo to a new GitHub repo, so I went to GitHub.com and created a new repo with their web interface
- I then did a
git-push MyNewRepoOnGitHub master
Does MyNewRepoOnGitHub have everything that I originally cloned? Can I send a pull request to the contributors of the project that I originally cloned? Or… am I being completely thick and need to reread what I thought I knew about Git?!
Your new repository on github will only contain all commits reachable from
master(you only pushed master). To push all refs (including tags), usegit push MyNewRepoOnGitHub --all.I don’t use github myself, but a pull request should be possible. Commits don’t change when cloned or pushed (but it could be possible that github requires you to ‘fork’ the project first). Pulling and merging from your both your cloned repositories will definitely work (with plain git)