「区切りは悪いが続きは家でやりたい」なんて時もあるわけで…。
# if exist git branch -D snapshot_branch # end if git checkout -b snapshot_branch git add . git commit -m "snapshot_yyyymmddhhnn" # if exist git push --delete cloud_repository snapshot_branch git fetch --prune cloud_repository # end if git push cloud_repository snapshot_branch
git fetch cloud_repository # if exist git branch -D snapshot_branch # end if git checkout -b snapshot_branch cloud_repository/snapshot_branch git reset --soft HEAD~ # edit done ... git add . git commit -m "snapshot_yyyymmddhhnn" git push --delete cloud_repository snapshot_branch git fetch --prune cloud_repository git push cloud_repository snapshot_branch
# if exist git branch -D snapshot_branch # end if git fetch --prune cloud_repository git checkout -b snapshot_branch cloud_repository/snapshot_branch git reset --soft HEAD~ # edit done again ...