Yuan Yijun (bbbush) wrote,
Yuan Yijun

VSS and local Git

Since all codes in Git can build, don't overwrite them with files from VSS if you want a stable testing environment.

If you do need a later version, take care to download the minimum from VSS, and you can always go back with "git reset --hard" which means drop all local changes. Before downloading new code from VSS, remember to commit your local modification to a branch, and switch to "master" to do the test build. Once build is done, then switch back and rebase the branch. The "master" branch is used to track upstream.

When you are going to commit to VSS, first do a rebase, then make sure it works, then merge it to "master" and (optionally) delete the branch. Finally, commit to VSS. In this way the history can be retained by the merge.

I sent this email today, donno if this is the right way (TM) to use Git. But we must do it. Try it first.
Tags: 工作

Recent Posts from This Journal

  • 2020

    Last time I wrote a review was in 2018, about 2017. Or maybe I wrote something elsewhere, maybe on Twitter? It was hard to write something freely…

  • Crime and Punishment

    As a step to improve the illiterate situation I joined the Basic Program this year. It had been in my mind for a couple years, but glad this time I…

  • zz:Firefox Monitor found your email in a new data breach

    5/26/2020 breach happened after LiveJournal became active on Twitter since this week -- coincidence?

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded