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

fix:Added steps for Troubleshooting in creating a new Branch#34764 #34790

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,112 @@

{% desktop %}

## If any Error

Check failure on line 127 in content/get-started/exploring-projects-on-github/contributing-to-a-project.md

View workflow job for this annotation

GitHub Actions / lint-content

Headings should be surrounded by blank lines

Expected: 1; Actual: 0; Below.

Check failure on line 127 in content/get-started/exploring-projects-on-github/contributing-to-a-project.md

View workflow job for this annotation

GitHub Actions / lint-content

Headings should be surrounded by blank lines

Expected: 1; Actual: 0; Below.
Follow the Steps mentioned below:

1.Check if your repository has any commits:Run this command in Git Bash:

{% webui %}

```shell
git log
```

{% endwebui %}

{% cli %}

```shell
git log
```

{% endcli %}

{% desktop %}

2.Check your current branch name:

{% webui %}

```shell
git branch
```

{% endwebui %}

{% cli %}

```shell
git branch
```

{% endcli %}

{% desktop %}

3.If you don't have any commits yet, make an initial commit:

{% webui %}

```shell
git add .
git commit -m "Initial commit"
```

{% endwebui %}

{% cli %}

```shell
git add .
git commit -m "Initial commit"
```

{% endcli %}

{% desktop %}

4.Now try creating your new branch:

{% webui %}

```shell
git checkout -b your-new-branch-name
```

{% endwebui %}

{% cli %}

```shell
git checkout -b your-new-branch-name
```

{% endcli %}

{% desktop %}

Check failure on line 210 in content/get-started/exploring-projects-on-github/contributing-to-a-project.md

View workflow job for this annotation

GitHub Actions / lint-content

Markdown content must use valid Liquid

Liquid syntax error: tag {% desktop %} not closed.

Check failure on line 210 in content/get-started/exploring-projects-on-github/contributing-to-a-project.md

View workflow job for this annotation

GitHub Actions / lint-content

Markdown content must use valid Liquid

Liquid syntax error: tag {% desktop %} not closed.

5.If your default branch is "main" instead of "master", use this command to create a new branch:

{% webui %}

```shell
git checkout -b your-new-branch-name main
```

{% endwebui %}

{% cli %}

```shell
git checkout -b your-new-branch-name main
```

{% endcli %}

{% desktop %}


Check failure on line 232 in content/get-started/exploring-projects-on-github/contributing-to-a-project.md

View workflow job for this annotation

GitHub Actions / lint-content

Multiple consecutive blank lines

Expected: 1; Actual: 2.

Check failure on line 232 in content/get-started/exploring-projects-on-github/contributing-to-a-project.md

View workflow job for this annotation

GitHub Actions / lint-content

Multiple consecutive blank lines

Expected: 1; Actual: 2.
For more information about how to create and manage branches in {% data variables.product.prodname_desktop %}, see "[AUTOTITLE](/desktop/making-changes-in-a-branch/managing-branches-in-github-desktop)."

{% enddesktop %}
Expand Down
Loading