I just created a new remote repository then added, committed and pushed all local repository files to this new remote repository.
git add -A
git commit -m "all files added"
git push newRepo master
Before I did this I was pushing to another repository while leaving most files untracked as well as not committing changes to most files.
> git status
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
Now my local repository is ahead of the oldRepo 2 commits and changes seem to be tracked between newRepo and the local repository. How can I revert back to tracking between the oldRepo and my local repo?
So there are 2 remote repositories: newRepo and oldRepo + my local repo I need to track between local and oldRepo.