代码之家  ›  专栏  ›  技术社区  ›  user3239126

了解Github上克隆和推送的步骤

  •  1
  • user3239126  · 技术社区  · 11 年前

    我在Windows上使用GitBash 1.9版,想知道是否有人可以确认我将遵循的以下步骤是否正确?

    1) $git clone https:...............
    
    After making changes, that is replacing the old file with new file. I need to go to the correct directory using cd directoryname and then following the following steps: 
    
    2) $git add .
    
    3) $git commit -m "Added Updated File"
    
    4) $git  pull
    
    5) $git push -u origin master
    

    请确认,因为我不想搞乱我的存储库,这是我第一次克隆并推送到GitHub

    谢谢

    1 回复  |  直到 11 年前
        1
  •  1
  •   Özgür Eroğlu    11 年前

    数字4不是必需的。只需在提交后推动。其他都可以。