Pull of repository only downloading readme file #59897
-
Select Topic AreaQuestion BodyHi I am having trouble pulling a repository. It only will download the readme file, and there are several folders that it should be pulling. SSH, HTTPS does the same thing. Zip will pull the folders but not the .csv embedded in the repository. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Based on your question I don't 100% understand your issue but I will share some thoughts I had while reading your post. If you are pulling from the remote repository to your local copy, that could actually make sense. If you have created a README.md on the webpage of the repository and committed the changes directly, with the next pull to your local repository it will only pull the README.md if it was the only change. If you have created directories that exist but don't include any files, they won't be integrated in your next commit until they have content. If you wish to always have your empty directories to be committed, you can simply create a .gitkeep inside of your desired empty directory and you are good to go. I hope that helped. Please let me know if you have any further information 😄 |
Beta Was this translation helpful? Give feedback.
-
Hi there Based on the screenshot you have provided try the following: Check which branch you are currently on. I suspect main branch Switch to the v1.2 branch and pull the changes Or you could merge changes on branch v.12 into the main branch on github.com then pull the changes. Be careful because the message on your screenshot says: You made 7 changes to main branch that are not in v1.2 branch You will have to figure out how to merge the changes together. Edit: look for the branch with name v1.2 Then do the following |
Beta Was this translation helpful? Give feedback.
-
That got it! Thanks a ton!Sent from my iPhoneOn Jul 3, 2023, at 2:33 PM, Tshenolo Mos ***@***.***> wrote:
Run the following command to view all the branches on your local repo:
git branch
look for the branch with name v1.2
Then do the following
git checkout
git pull
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
I am glad I was able to help you with the issue.
Please consider accepting my answer before closing the question.
I have added an edit to my original answer.
Thanks