Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-rename-branch: add page #5950

Merged
merged 3 commits into from
May 13, 2021
Merged

git-rename-branch: add page #5950

merged 3 commits into from
May 13, 2021

Conversation

CleanMachine1
Copy link
Member

@CleanMachine1 CleanMachine1 commented May 12, 2021

  • The page (if new), does not already exist in the repo.
  • The page has 8 or fewer examples.
  • The PR title conforms to the recommended templates.
  • The page follows the content guidelines.
  • The page is in the correct platform directory (common/, linux/, etc.)
  • The page description includes a link to documentation or a homepage (if applicable).

For #5137

@bl-ue bl-ue added the new command Issues requesting creation of a new page. label May 12, 2021
Copy link
Contributor

@bl-ue bl-ue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! But I don't even see why this tool is that useful, because git branch -m main, for example, has always worked perfectly for me to change the current branch's name. 🤔

@CleanMachine1
Copy link
Member Author

I think it just auto pushes it to upstream, does your command do that?

@bl-ue
Copy link
Contributor

bl-ue commented May 12, 2021

Nope. It just changes it locally. I can see now why that would be useful, because configuring local vs. remote branches can be difficult! 😝

@CleanMachine1
Copy link
Member Author

it actually doesn't set upstream.. and it doesn't push

 git push
fatal: The current branch testupdated has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin testupdated

@CleanMachine1
Copy link
Member Author

Nevermind, it does change the name and push it, but only if the branch you are changing is already on origin

@bl-ue bl-ue mentioned this pull request May 12, 2021
73 tasks
@navarroaxel navarroaxel merged commit 92a4fea into tldr-pages:main May 13, 2021
@CleanMachine1
Copy link
Member Author

And with this, I would like to apply for collaborator, where do I ask?

@CleanMachine1 CleanMachine1 deleted the git-rename-branch branch May 13, 2021 23:39
This was referenced Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new command Issues requesting creation of a new page.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants