git commands
clone
branch
checkout branch##git to switch branch
add .
commit -m "####"
push
git push --set-upstream origin max
remote: Repository not found.
fatal: repository 'https://adc.github.trendmicro.com/BA-PLS/cd-gcs.git/' not found ??
$ git push
fatal: The current branch kk has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin kk
ext_maxm@tw-maxmu MINGW64 ~/maxTestRepo (kk)
$ git push --set-upstream origin kk
Total 0 (delta 0), reused 0 (delta 0)
To https://adc.github.trendmicro.com/ext-maxm/maxTestRepo.git
* [new branch] kk -> kk
Branch 'kk' set up to track remote branch 'kk' from 'origin'.
ext_maxm@tw-maxmu MINGW64 ~/maxTestRepo (kk)
$
ext_maxm@tw-maxmu MINGW64 ~/maxTestRepo (kk)
==========================================
0308 all process
>git pull
>git branch ReadFromLast2FALSE
>git checkout ReadFromLast2FALSE
>git branch
* ReadFromLast2FALSE
add_lmp
master
max0305
max0307
max2
>git add .
Edit code
>git add .
>git commit -m "ReadFromLast TRUE2FALSE"
[ReadFromLast2FALSE 1fb8ed5] ReadFromLast TRUE2FALSE
Committer: Max Mu (EXT-TW) <max_mu@trendmicro.com>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:
git config --global --edit
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
4 files changed, 32 insertions(+), 20 deletions(-)
>git tag "1.2.12"
>git push
(or >git push --set-upstream origin add_lmp)
>git push --tags
沒有留言:
張貼留言