как загрузить на гит директорий исходников имя.git или в тар архиве?
из клиента склонировать на локал можно, а поднять в гитхаб — что то не получается.

rambleon
20.05.19 22:37:57 MSK

EXL ★★★★★
( 20.05.19 22:45:04 MSK )
На github когда создаешь репозиторий, он тебе рассказывает, как в него залить файлы (создать новую репу локально и залить ее, либо залить уже существующую).
anonymous
( 20.05.19 22:46:49 MSK )
Ответ на: комментарий от anonymous 20.05.19 22:46:49 MSK

это не файл это директори1, т.е. папка, мамка и проч common\ LINUX\ modem_proc\ rpm_proc\ trustzone_images\ wcnss_proc\ .gitattributes about.html contents.xml contents_8916.xml contents_8916_64.xml contents_8939.xml contents_8939_64.xml contents_UG.xml contents_UG_8916.xml contents_UG_8916_64.xml contents_UG_8939.xml contents_UG_8939_64.xml contents_VG_8916.xml contents_VG_8916_64.xml contents_VG_8939.xml contents_VG_8939_64.xml contents_YG_8916_64.xml contents_YG_8939_64.xml fixed_crs.xls known_issues.xls
rambleon
( 20.05.19 23:06:57 MSK ) автор топика
Ответ на: комментарий от rambleon 20.05.19 23:06:57 MSK

git add . git commit -m "commit message" git push
Difrex ★★★★
( 21.05.19 08:14:06 MSK )
Ответ на: комментарий от Difrex 21.05.19 08:14:06 MSK

да в том то и дело, что не коммит а полность репу 5гб. надо показать — спросить консультацию по сборке я его даже толком загрузить не могу в десктопный гит. в одном ограничение 50000 файлов, в другом — cannot publish unborn HEAD. я уже погугли на это сообщение, но ничего не понял
rambleon
( 21.05.19 10:33:27 MSK ) автор топика
Ответ на: комментарий от rambleon 21.05.19 10:33:27 MSK

а русский язык родной? это два.
SevikL ★★★★★
( 21.05.19 10:40:23 MSK )
Ответ на: комментарий от SevikL 21.05.19 10:40:23 MSK

Repositories have a hard limit of 100GB. If you reach 75GB you’ll receive a warning from Git in your terminal when you push
да вроде проходит.
rambleon
( 21.05.19 10:43:28 MSK ) автор топика
Ответ на: комментарий от rambleon 21.05.19 10:33:27 MSK

толком загрузить не могу в десктопный гит. в одном ограничение 50000 файлов
лишний нолик — 5000 файлов
rambleon
( 21.05.19 10:45:25 MSK ) автор топика
Ответ на: комментарий от rambleon 21.05.19 10:33:27 MSK

У тебя уже есть склонированная существующая репа и ты её хочешь залить в другое место?
Если так, то добавь еще один remote:
git remote add myremote git@github.com/. git push myremote master
Difrex ★★★★
( 21.05.19 11:28:13 MSK )
Ответ на: комментарий от Difrex 21.05.19 11:28:13 MSK

в том то и дело, что этот исходник — директорий git, проблема даже с открытием в клиенте. один пишет что более 5000 файлов — не открывает. другой жалуется на что cannot publish unborn HEAD.
rambleon
( 21.05.19 14:04:41 MSK ) автор топика
Ответ на: комментарий от rambleon 21.05.19 14:04:41 MSK

Ничего не понял. Каком еще клиенте?
что этот исходник — директорий git
Difrex ★★★★
( 21.05.19 14:59:38 MSK )
Ответ на: комментарий от rambleon 20.05.19 23:06:57 MSK
Хоть ты и голубой, но я попробую тебе помочь. Вечером черкану.
anonymous
( 21.05.19 19:21:33 MSK )
Ответ на: комментарий от rambleon 21.05.19 14:04:41 MSK
Зачем тебе такой страшный аватар? Думаю в жизни ты красивый.
anonymous
( 21.05.19 21:14:31 MSK )
Ответ на: комментарий от anonymous 21.05.19 21:14:31 MSK

rambleon
( 22.05.19 12:22:48 MSK ) автор топика
Ответ на: комментарий от Difrex 21.05.19 14:59:38 MSK

git gui — не показывает более 5000 файлов, и вообще его не открывает полностью, и нет опции выноса в гитхаб github desctop — на publish branch пишет cannot publish unborn HEAD. директорий git, это не файл коммита .git\ boot_images\ common\ LINUX\ modem_proc\ rpm_proc\ trustzone_images\ wcnss_proc\ .gitattributes about.html contents.xml contents_8916.xml contents_8916_64.xml contents_8939.xml contents_8939_64.xml contents_UG.xml contents_UG_8916.xml contents_UG_8916_64.xml contents_UG_8939.xml contents_UG_8939_64.xml contents_VG_8916.xml contents_VG_8916_64.xml contents_VG_8939.xml contents_VG_8939_64.xml contents_YG_8916_64.xml contents_YG_8939_64.xml fixed_crs.xls known_issues.xls
rambleon
( 22.05.19 12:31:10 MSK ) автор топика
Ответ на: комментарий от rambleon 22.05.19 12:31:10 MSK
Тебе же уже сказали — добавь второй remote и залей через консоль. GUI клиент к git это очень большое извращение и в целом бесполезная вещь продуцирующая дополнительные проблемы.
anonymous
( 22.05.19 13:15:29 MSK )
Ответ на: комментарий от anonymous 22.05.19 13:15:29 MSK

который и где — в лохал или на хабе тут первый? и откуда и куда его добавить? я создавал на хабе пустой с этим именем, один х из клиента ни . чего не делается. надо освоить строку. но это рншает проблему ругани на HOME
rambleon
( 22.05.19 15:45:40 MSK ) автор топика
Ответ на: комментарий от rambleon 22.05.19 12:22:48 MSK
Какой ты смешной 🙂 А у тебя есть парень?
anonymous
( 22.05.19 18:33:42 MSK )
Ответ на: комментарий от rambleon 22.05.19 12:31:10 MSK

Difrex ★★★★
( 22.05.19 20:29:30 MSK )
Ответ на: комментарий от Difrex 22.05.19 20:29:30 MSK

спасибо ) буду втыкать комстроку. я уже смотрел http://www-cs-students.stanford.edu/~blynn/gitmagic/intl/ru/ch02.html https://git-scm.com/book/ru/v2 но то что там написано далеко от реальности. я ставил несколько раз Git-2.21.0-64-bit.exe, хз куда он там ставится, хз чо он там конфигурирует, но больше 5000 файлов не отображает и на хаб открытый гит не выкладывает. в c:\Users\admn\AppData\Local\ я его вижу, но никакого файла HOME нет. кароче какаято мутная х-я
rambleon
( 22.05.19 21:13:34 MSK ) автор топика
Ответ на: комментарий от anonymous 22.05.19 18:33:42 MSK

смешной твой папка был, когда свинью е. ал
rambleon
( 22.05.19 21:15:13 MSK ) автор топика
Ответ на: комментарий от rambleon 22.05.19 21:15:13 MSK
Не злись на них, будь самим собой. Ты — гей и гордись этим. Им не понять тебя.
anonymous
( 22.05.19 21:44:42 MSK )
Ответ на: комментарий от rambleon 22.05.19 21:13:34 MSK

Предполагается, что ты пользуешься Линуксом. По винде это тебе на другой форум надо идти.
Difrex ★★★★
( 22.05.19 22:30:17 MSK )
Ответ на: комментарий от Difrex 22.05.19 22:30:17 MSK

ну, гит то тот же? я выполнил git push —set—upstream origin master
error: src refspec master does not march any error: failed to push some refs to https://github.com/lzittod/msm8939-la-2-0_amss_device.git потом он нашел untracked files я сделал git add . он чота погонял диск и снова повторил https://github.com/lzittod/msm8939-la-2-0_amss_device.git
только вот какое дело. это нигде не определено и не указано: папка с исходниками имеет имя msm8939-la-2-0_amss_device.git архиватор оставил с какого то х на конце это расширение. я решил, что так и должно быть. ну откуда я знаю, и нтгде про это не написано. ну так вот когда я создавал репозиторий на хабе, я полностью указал msm8939-la-2-0_amss_device.git , гит отбросил это расширение. ессно, это же и отражено в урле на гите и сообщении клиента. может в этом косяк? я так понимаю, если тупо вынести это расширение .git, надо будет по новой создавать мастер на локале с новым именем?
а на git remote add cwerj https://github.com/lzittod/msm8939-la-2-0_amss_device чота заткнулся и . может пошёл? но ведь не указан в команде мой репозиторий!? них не понимаю
rambleon
( 22.05.19 23:29:28 MSK ) автор топика
Ответ на: комментарий от anonymous 22.05.19 21:44:42 MSK
иди мамкину сиську отсоси
anonymous
( 23.05.19 00:40:42 MSK )
Ответ на: комментарий от Difrex 22.05.19 22:30:17 MSK

полюбому на git push username master отвечает src refspec master does not match any
rambleon
( 23.05.19 02:37:51 MSK ) автор топика
Ответ на: комментарий от Difrex 21.05.19 08:14:06 MSK

на git push — длинный выхлоп,
hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., ‘git pull . ‘) before pushing again. hint: See the ‘Note about fast-forwards’ in ‘git push —help’ for details.
$ git pull remote fatal: ‘remote’ does not appear to be a git repository fatal: Could not read from remote repository.
rambleon
( 23.05.19 03:41:18 MSK ) автор топика
Ответ на: комментарий от Difrex 22.05.19 22:30:17 MSK

кароче, как я понял, прежде чем репу загрузить на хаб, нужно там её создать, а это значит сделать хоть один коммит. прежде чем туда залить репу, её нужно завершить, а для этого в неё нужно добавть комит с хаба, без этого на push она заливаться не будет, а на pull не идет по другой причине какая то хрень
Saved searches
Use saved searches to filter your results more quickly
Cancel Create saved search
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
desktop / desktop Public
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
cannot publish unborn HEAD #9630
Github website publish cannot publish unborn HEAD
I cannot publish a bootstrap website from my local computer through Github desktop. It states: cannot publish unborn head What does it mean? What changes should I make?
2,224 1 1 gold badge 18 18 silver badges 41 41 bronze badges
asked Jan 30, 2018 at 17:15
Sofia Kostiunina Sofia Kostiunina
279 1 1 gold badge 3 3 silver badges 6 6 bronze badges
Have you committed your code?
Jan 30, 2018 at 20:54
Thanks, I’ve found the problem.. I haven’t included read me files..
Jan 31, 2018 at 14:30
And you can’t publish if you got nothing to publish.
Dec 8, 2020 at 5:14
9 Answers 9
The reason is that your repository is empty and you should make at least a readme file. It worked in my case.
2,224 1 1 gold badge 18 18 silver badges 41 41 bronze badges
answered Jul 16, 2018 at 15:20
Brij Raj Kishore Brij Raj Kishore
1,625 1 1 gold badge 11 11 silver badges 24 24 bronze badges
cannot publish unborn HEAD
This issue occurs because your github repository is empty i.e without a single file.Below is the snapshot.

2 ways to fix this,
- While creating repository initialize with default readme file.

- Or create a new readme file after repository is created(without readme file).
git add README.md
git commit -m «first commit»
git push -u origin master
answered Jun 24, 2020 at 4:49
Hameed Syed Hameed Syed
3,987 2 2 gold badges 21 21 silver badges 31 31 bronze badges
You have to commit something to publish repository.
answered Apr 23, 2020 at 6:47
Md. Robi Ullah Md. Robi Ullah
1,823 3 3 gold badges 21 21 silver badges 33 33 bronze badges
The solution for me was to add some text in the ‘summary’ area (lower left hand corner of Github desktop GUI).
answered Nov 18, 2021 at 11:14
Diletta Goglia Diletta Goglia
31 5 5 bronze badges
I did the same and it worked. I had files in the repo as well as the README but still came across the error in GitHub Desktop.
May 25, 2023 at 8:39
Try to add a file in your local repo before, you publish into github.
answered Jul 29, 2022 at 19:44
13 5 5 bronze badges
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
Aug 1, 2022 at 8:49
Perhaps it will be useful to someone.
Note whether the file from your repository is open in the IDE, and if it is open, close it.
answered Sep 12, 2023 at 15:34
1 2 2 bronze badges
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
Sep 13, 2023 at 10:49
If you have created your repo locally using git init first thing you need to do is to add files to commit by git add . and then execute git commit -m ‘commit message here’ . Then you can execute
git remote add origin https://github.com/yourUserName/yourRepo.git git branch -M main git push -u origin main
And your changes will be in your remote repo
TLDR: just commit your changes
answered Nov 18, 2023 at 11:25
3 2 2 bronze badges
Thank you for your interest in contributing to the Stack Overflow community. This question already has quite a few answers—including one that has been extensively validated by the community. Are you certain your approach hasn’t been given previously? If so, it would be useful to explain how your approach is different, under what circumstances your approach might be preferred, and/or why you think the previous answers aren’t sufficient. Can you kindly edit your answer to offer an explanation?
Nov 19, 2023 at 0:23
To push you need something to push. It is a commit. Just create like git add . && git commit -m Repository init .
You also can create .gitignore file and push it together with commit.
For example: 1 git init — init git
2 git remote add origin — add drecord to remote repo as «origin» link
3 git branch -M master — set default branch name
4 touch .gitignore — create file. Edit it as you want.
5 git add . — add all uncommited files, watches gitignore
6 git commit -m Repository init — create commit to push
7 git push -u origin master — push commits (changeds) and set up-stream to master branch.
GitHub Desktop และ VS Code และ Virtualenv บน Windows Subsystem for Linux [EP1/2]
การจัดการเรื่อง python environment เรื่อง package ต่างๆ เวลาทำบน linux นั่นคล่องตัวกว่าบน windows เยอะ ดังนั้นก็มาเล่นบน WSL กันดีกว่า แต่เวลา coding อยากจะใช้ vs code ละทำยังไง ? แล้วเรื่อง version control อยากจะใช้ github ละทำยังไง ? … ตามขั้นตอนนี้ได้เลย
EP1/2 : GitHub Desktop และ VS Code บน Windows Subsystem for Linux
1. ติดตั้ง WLS ให้เรียบร้อย
2. มา config git กันก่อน
กำหนดชื่อ, กำหนด email, และตรวจสอบ
$ git config --global user.name "name"
$ git config --global user.email "name@email.com"
$ git config --global --list
3. สร้าง repository ที่ local
$ mkdir fox
$ cd fox
$ git init