Git housekeeping: move image resize to separate branch #7

Closed
opened 2020-10-23 14:46:45 +03:00 by gytisrepecka · 1 comment
Owner

Currently image resize is in develop branch. That is not nice - new feature should have own branch and only when development done, it should go into develop.

So it is needed to rename develop into image-resize and create new develop branch from current master.

Useful guide how to rename branch in git.

Currently image resize is in `develop` branch. That is not nice - new feature should have own branch and only when development done, it should go into `develop`. So it is needed to rename `develop` into `image-resize` and create new `develop` branch from current `master`. Useful guide [how to rename branch in git](https://linuxize.com/post/how-to-rename-local-and-remote-git-branch/).
Author
Owner

Done:

$ git pull
Already up to date.
$ git checkout develop
Already on 'develop'
Your branch is up to date with 'origin/develop'.
$ git branch -m image-resize
$ git push origin -u image-resize
Total 0 (delta 0), reused 0 (delta 0)
remote: 
remote: Create a new pull request for 'image-resize':
remote:   https://source.gyt.is/gytisrepecka/webimg/compare/master...image-resize
remote: 
To source.gyt.is:gytisrepecka/webimg.git
 * [new branch]      image-resize -> image-resize
Branch 'image-resize' set up to track remote branch 'image-resize' from 'origin'.
$ git push origin --delete develop
To source.gyt.is:gytisrepecka/webimg.git
 - [deleted]         develop
$ git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
$ git checkout -b develop
Switched to a new branch 'develop'
$ git push origin develop
Total 0 (delta 0), reused 0 (delta 0)
remote: 
remote: Create a new pull request for 'develop':
remote:   https://source.gyt.is/gytisrepecka/webimg/compare/master...develop
remote: 
To source.gyt.is:gytisrepecka/webimg.git
 * [new branch]      develop -> develop
Done: ```bash $ git pull Already up to date. $ git checkout develop Already on 'develop' Your branch is up to date with 'origin/develop'. $ git branch -m image-resize $ git push origin -u image-resize Total 0 (delta 0), reused 0 (delta 0) remote: remote: Create a new pull request for 'image-resize': remote: https://source.gyt.is/gytisrepecka/webimg/compare/master...image-resize remote: To source.gyt.is:gytisrepecka/webimg.git * [new branch] image-resize -> image-resize Branch 'image-resize' set up to track remote branch 'image-resize' from 'origin'. $ git push origin --delete develop To source.gyt.is:gytisrepecka/webimg.git - [deleted] develop $ git checkout master Switched to branch 'master' Your branch is up to date with 'origin/master'. $ git checkout -b develop Switched to a new branch 'develop' $ git push origin develop Total 0 (delta 0), reused 0 (delta 0) remote: remote: Create a new pull request for 'develop': remote: https://source.gyt.is/gytisrepecka/webimg/compare/master...develop remote: To source.gyt.is:gytisrepecka/webimg.git * [new branch] develop -> develop ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gytisrepecka/webimg#7
No description provided.