以前のリビジョンの文書です
> git init
> git checkout [ブランチ名] > git checkout master Switched to branch 'master' Your branch is up to date with 'origin/master'.
git checkout .
>git remote -v origin https://github.com/nekotype/native-background-timer.git (fetch) origin https://github.com/nekotype/native-background-timer.git (push) >git config --get remote.origin.url https://github.com/nekotype/native-background-timer.git
git push -u origin master
git logでコミットidを調べて git reset --hard [コミットid]
現在のブランチ名
> git rev-parse --abbrev-ref HEAD
ブランチを切り替える
> git checkout master
//ブランチを作る git branch [new branch] //コミットからブランチを作る git branch [new branch] [commmit] //ブランチを作って切り替える git checkout -b [new branch]