Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8095781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:14:52+00:00 2026-06-05T21:14:52+00:00

My colleague created a repository in Bitbucket. I first created a folder in my

  • 0

My colleague created a repository in Bitbucket. I first created a folder in my computer and typed git init. After which,I made a clone from the repository to my computer using the command: git clone address.

But when i type git branch, there is no reply. It doesn’t indicate which branch am i in.

git init
Initialized empty Git repository in /Users/IMAC/GsAdmin/.git/
git clone address
Cloning into 'gsadmin'...
Password: 
remote: Counting objects: 32, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 32 (delta 3), reused 0 (delta 0)
git branch
git status
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   .DS_Store
#   gsadmin/
nothing added to commit but untracked files present (use "git add" to track)

What is my mistake? Need some guidance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:14:55+00:00Added an answer on June 5, 2026 at 9:14 pm

    There are two ways to create a git repository. You can use git init to create a new one, or you can use git clone to clone an existing one. If you run both init and clone then git will first create a new empty repository in the current directory and then clone the remote repository into a subdirectory of the empty one.

    If you run git branch in the current directory then it will return no branches as the repository is empty and the master branch will be created with the first commit. If you go into the subdirectory then git branch should list the one branch that was created from the remote repository’s default branch.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Story: in the middle of a project my colleague created a new branch from
In showing a colleague how to use SVN yesterday, we created a test folder
There is a Git repository on a server that my colleague and I both
Using DTS I'm dynamically creating an access database. After the file is created (which
I've created a bare (central) repository on a windows machine. My colleagues and myself
A colleague of mine came across an article on codeproject over the weekend which
A colleague has a batch script program which needs to to run on a
Let's say I have file secret_config in .git/info/exclude . My colleague, who doesn't know
I have created a xlt excel template which works fine in Excel 2007 under
Using google docs, a colleague has created a plot similar to: I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.