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 8159411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:54:12+00:00 2026-06-06T17:54:12+00:00

These are my steps to create a remote git repository and push to it

  • 0

These are my steps to create a remote git repository and push to it the data that I have in my local machine:

# mkdir -p git/sports.git
# cd git/
# cd sports.git/
# git init --bare
Initialized empty Git repository in /home/tirengarfio/git/sports.git/
# exit
logout
Connection to 173.203.57.258 closed.
(master)]$ git remote add origin ssh://root@173.203.57.258/home/tirengarfio/git/sports.git
(master)]$ git push --all
root@173.203.57.258's password: 
Counting objects: 1271, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (1236/1236), done.
Writing objects: 100% (1271/1271), 1.11 MiB, done.
Total 1271 (delta 37), reused 0 (delta 0)
To ssh://root@173.203.57.258/home/tirengarfio/git/sports.git
 * [new branch]      master -> master

When I go to /home/tirengarfio/git/sports.git/branches it is empty..

  • 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-06T17:54:13+00:00Added an answer on June 6, 2026 at 5:54 pm

    Hope this answers your question(s)…

    Where are my files?

    Git does not store the files in plain. It compresses them and stores then in a tree (and in so called packfiles). There is an article on gitready that explains the directory structure. For more details, you could refer to the manpage I linked below.

    • what’s inside your .git directory

    For details about the internal format, please see chapter 9 of the Pro Git book. Here is an online version:

    • Pro Git – Git Internals

    Why is the branches directory empty?

    The branches directory seems to exist only for legacy purposes. Which is documented in man 5 gitrepostory-layout:

    branches

    A slightly deprecated way to store shorthands to be used to specify URL to git fetch, git pull and git push commands is to store a file in branches/ and give name to these commands in place of repository argument.

    For more details, see: What is the .git/branches folder used for?

    How do I get the files out of the .git directory?

    If you just want to access your files, the simplest way would be to clone your repository.

    $ git clone /home/tirengarfio/git/sports.git/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing these steps: Create new vs2010 C# console application Project menu -> Add
These are the steps I am executing: # meteor create helloworld # cd helloworld
After following these steps: http://developers.facebook.com/docs/mobile/android/build/ I find that everything goes well, but when I
Possible Duplicate: git push error '[remote rejected] master -> master (branch is currently checked
I can't find a clear description of these steps in Apple docs... I have
I am using GitPython to fetch a remote repository to my machine. The following
I found a strange ToolStripButton double click problem. These steps will reproduce the problem:
The loop for root, dir, file in os.walk(startdir) works through these steps? for root
Say,how to implement these three steps: 1.fetch a html source from server side 2.use
I have made an html wizzard for making order. There are four steps, in

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.