I am a single developer right now, but I do have a workplace, and I also do work at home. Github is pretty ideal for me because the goal is to track my code, but also just keep it in a good repository so I don't lose it. So here is my work process...
site a
)site b
(usually office)site b
Team Explorer
-> Projects
-> Connect to Team Projects
, and then using Clone
with the github repository URL.site b
for the day
site a
) and open up Visual Studio 2013
Team Explorer
-> Unsynched Commits
and click Pull
I would understand this if I had made edits to the current project before trying to pull - but I haven't. All I've done is loaded up Visual Studio. It says "See the Output window for details" but the Output window is completely blank - there are no details, and in this situation the only answer I've found is to delete the WHOLE project from my computer and clone the entire repository again.
Certainly this isn't right, I'm a complete newbie to git, and I have read the documentation over and over and this still makes no sense to me. Can anyone help shed some light on any of this?
When your uncommitted changes are significant to you, there are two options. You can commit them and then perform git pull , or you can stash them.
Right-click your project suite in the Project Explorer and then click Source Control > Show Changes.
Git push command does it. These changes represent commitments performed on the repository and not the uncommitted changes (if any).
Before pull
-ing you need to stash
your uncommitted changes first. Visual Studio does not support full range of Git functionality yet, including git stash
, so you have to do it through command line or use something like Source Tree in addition to Visual Studio for such occasion. Run git status -u
to see uncommitted changes and git stash
to temporarily hide them before pulling/syncing. Once in a while Visual Studio will cache the status results and will get out of sync with reality, in this case kill Studio, delete .git\ms-persist.xml
file and restart.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With