cox wrote:This is how I did it
In some folder test
git clone
git@gist.github.com:/735fee0727a038425a11.git
cd 735fee0727a038425a11
cp /home/username/somebinaryfile.bin .
git commit -a
git push
Your binary file is uploaded to the gist
I had some error messages as follows:
Code: Select all
git clone git@gist.github.com:/735fee0727a038425a11.git
generated:
Code: Select all
Cloning into '735fee0727a038425a11'...
The authenticity of host 'gist.github.com (192.30.252.140)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gist.github.com,192.30.252.140' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
so I used:
Code: Select all
git clone https://gist.github.com/piffpoof/735fee0727a038425a11.git
to which I got:
Code: Select all
Cloning into '735fee0727a038425a11'...
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
Checking connectivity... done.
which at least didn't have an error message.
- I then had FreeCAD save a file named "emptyHouse.FCstd" into the test directory which I had cloned the git repository into
- there were then 2 files in the test directory: the Python script from earlier and the FreecAD document just saved to there
then I tried:
which generated:
Code: Select all
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
emptyHouse.FCStd
nothing added to commit but untracked files present
which didn't look so good, but I carried on with:
which produced:
Code: Select all
Username for 'https://gist.github.com': piffpoof
Password for 'https://piffpoof@gist.github.com':
Everything up-to-date
Going back to the web interface, there is no binary file. I signed out and back in and still nothing.
Probably I am missing something simple?
Perhaps someone with more extensive git experience can identify what is missing/wrong