我有以下按相应顺序运行的命令列表,以便可以提交源项目并将其推送到 Bitbucket 上的存储库:
git init
git remote add origin https://[BitBucket Username]@bitbucket.org/[BitBucket Username]/[BitBucket Repository Name].git
git config user.name "[BitBucket Username]"
git config user.email "[BitBucket Email ID]"
## if email doesn't work then use below ##
git config --global user.email \<\>
git add *
git commit -m "[Comment]"
git push -u origin master
现在不是将每一行放在各自的时间和顺序上,我想知道,是否有可能我可以将所有这些链接到一个git
命令中并保持相同的顺序,如下所示?
git init remote add origin https://[BitBucket Username]@bitbucket.org/[BitBucket Username]/[BitBucket Repository Name].git config user.name "[Username]" ....
或者至少组合多个相同类别的参数,如下所示?
git config user.name "[BitBucket Username]" user.email "[BitBucket Email ID]"
我需要通过示例了解这两种情况的可能性。