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

Replace git checkout with git switch where possible #7213

Open
lagru opened this issue Oct 18, 2023 · 4 comments · May be fixed by #7216
Open

Replace git checkout with git switch where possible #7213

lagru opened this issue Oct 18, 2023 · 4 comments · May be fixed by #7216

Comments

@lagru
Copy link
Member

lagru commented Oct 18, 2023

Description:

A minor suggestion for a good first issue, which might improve our documentation from the perspective of contributors which are new to git.

If you are a new contributor looking for a good first issue: if this issue is more than a few days old and there hasn't been disagreement, please feel welcome to go ahead and create a pull request.

The task:

  • replace every occurrence of git checkout <existing-branch> with git switch <existing-branch>
  • replace every occurrence of git checkout -b <new-branch> with git switch -c <new-branch>

in our documentation (files ending in .md, .rst, and .txt). Don't hesitate to reach out before if you have questions. :)

@mkcor
Copy link
Member

mkcor commented Oct 18, 2023

I didn't even know about this! This made me look up what The Carpentries would teach, and I found this (still) open issue: swcarpentry/git-novice#691 👀

@anamfatima1304
Copy link
Contributor

anamfatima1304 commented Oct 19, 2023

Hi, @lagru and @mkcor Thank You for posting. Can I be assigned this issue?
I have replaced the commands in CONTRIBUTING.rst so you can review them. Thank You

@mkcor
Copy link
Member

mkcor commented Oct 19, 2023

@anamfatima1304 sure, done!

This comment was marked as outdated.

@github-actions github-actions bot added the 😴 Dormant no recent activity label Apr 17, 2024
@lagru lagru removed the 😴 Dormant no recent activity label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants