得之我幸 失之我命

when someone abandons you,it is him that gets loss because he lost someone who truly loves him but you just lost one who doesn’t love you.

git 分支实战

在写 ftp 下载服务端版本发布 zip 包的时候,有些新的功能想添加,但又怕影响原来 py 脚本的稳定性,所以就想起了 git 的分支功能。

  1. 分支的新建和切换

    1
    2
    3
    4
    5
    $ git checkout -b iss53
    Switched to a new branch 'iss53'
    # 相当于
    $ git branch iss53
    $ git checkout iss53
  2. 分支的合并

    1
    2
    $ git checkout master
    $ git merge iss53
  3. 分支的删除

    1
    2
    3
    $ git branch -d iss53 # 删除已经合并的分支
    $ git branch -D iss53 # 删除未合并的分支
    $ git push origin --delete iss53 # 删除远程分支
  4. 分支的查看

    1
    2
    3
    4
    $ git branch # 查看所有分支
    $ git branch -v # 查看分支最新的 commit
    $ git branch --merged # 筛选出已经与当前分支合并的分支
    $ git branch -d testing # 筛选出未与当前分支合并的分支

be yourself, everyone else is already taken.