五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

git常見命令

2023-08-02 15:09 作者:陸震同學(xué)  | 我要投稿

簡單匯總下git常見命令:

  1. create your own folder

    mkdir?aa
    cd?aa

    verify that the current folder is 「not」 tracked by Git:

    git?status
  2. create a new SAS program file

    echo?"proc?options;?run;"?>?./pgm/sas-git.sas
  3. initialize a new repo by using the 「git init」 command

    git?init?--initial-branch==main

    This command creates a new git repository skeleton in a subdirectory named '.git' under the current directory. This meas that you're now able to start using other git commands in the current directory.

  4. git configuration

    git?config?--list?--show-origin?|?grep?user

    or use this command in windows to check whether you set your name and email of github:

    git?config?--list?--show-origin?|?findstr?user
  5. optional: set your basic identification configuration settings

    git?config?--global?user.name?"First-name?Last-name"
    git?config?--global?user.email?emailAddress@provider
  6. stage your project files with the 「git add」 command

    git?add?.
    git?status
  7. commit the files, we can use whether commit message (comment) we want

    git?commit?-m?'initial?commit'
  8. edit files, we can just use the ">>" to append something to the existing file's content

    echo?"/*?adding?just?a?comment?to?the?code?*/"?>>?./pgm/sas-git.sas
  9. stage and commit the files with this shortcut (-am means stage all and commit together)

    git?commit?-am?"added?a?comment"
  10. check repo history using the 「git log」 command

    git?log?--pretty=format:"%h?%ae?%s"

    the 「pretty」 option specifiers can make a more concise, readable history log with certain fields.

    or can use the 「--oneline」 option for a quick view:

    git?log?--oneline
  11. push to a remote repository

    <!--?git?remote?add?origin?<remote_repo_url>?-->?#only?do?this?once
    git?push?-u?origin?main
  12. pull from a remote repository

    git?pull?origin?main

github鏈接:https://github.com/Leslie-Lu/SASGit

Did you find this page helpful? Consider sharing it ??

git常見命令的評論 (共 條)

分享到微博請遵守國家法律
梓潼县| 鄂尔多斯市| 新绛县| 克山县| 许昌县| 台江县| 芒康县| 盐边县| 西贡区| 河东区| 大荔县| 烟台市| 襄城县| 施甸县| 革吉县| 青州市| 吴江市| 霍城县| 密山市| 乌兰察布市| 嘉峪关市| 云龙县| 临高县| 广汉市| 南京市| 襄城县| 泸州市| 公安县| 万宁市| 蒙山县| 渝北区| 嘉禾县| 大安市| 南涧| 蓝山县| 六盘水市| 定西市| 丰都县| 临城县| 拜城县| 武强县|