📅  最后修改于: 2023-12-03 15:15:20.025000             🧑  作者: Mango
如果你是程序员,那么你一定会在Github上创建新的代码仓库来托管你的代码,这里我们就介绍一下如何用Shell-Bash命令来创建新的仓库。
在开始之前,首先要确保你已经拥有一个Github账号,并且正确的登录了。
接下来,你可以在你的本地计算机终端或者Github网页上操作创建。我们这里就以在终端使用Shell-Bash命令为例。
cd /path/to/your/repo
git init
git add .
git commit -m "Initial Commit"
git remote add origin https://github.com/yourusername/yourrepository.git
其中,yourusername为你的Github账号名,yourrepository为你的仓库名。
git push -u origin master
以上就是使用Shell-Bash命令在Github上创建新仓库的全部步骤。当我们熟练掌握了这种方式之后,可以大大提升我们的效率和便捷性。