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 GitHub Docs tutorials #34764 #34789

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 @@ git checkout BRANCH-NAME

{% desktop %}

## If any Error
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 log
```

{% 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 %}

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 %}


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