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: 工作

  • 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…

  • #thotcon badge?

    [root@m4700 ~]# esptool write_flash 0x00000 /home/yuan/tracking/thotcon0x9/tc0x9.bin esptool.py v2.3.1 Connecting.... Detecting chip type...…

  • Portfolio weighted averages

    Last week I got an assignment to make a small Java library for some often used portfolio calculations. A portfolio is a collection of holdings, each…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded