How to pull out a file from a UNIX machine and upload it to bitbucket or even my (windows) computer?

Hey,

So I'm in my second level programming class (object oriented) and we are using a unix machine as our environment and g++ as a compiler, something that I've never really done before. I have basic understanding of UNIX and can work my way around, but I've never programmed in there.

We're using mercurial and bitbucket to download project files from the professor. I successfully cloned the project's repository and can access it through my ssh, but I can't figure out how to pull my .cpp file back and upload it to my own personal repository. If this is not possible, I'd like to have it on my computer so that I can upload it to the class website for grading.

Any help would be appreciated, since it's due tomorrow morning! Thanks!

Posted Jan 16, 2017, 6:59 PM UTC

15
FabioGNR•

Easiest solution might be using SFTP, this works with the same username/password as SSH. FileZilla is a pretty good client, make sure to use port 22 for SFTP.

1
OffendoOP•

Hey, thanks a lot! This worked perfectly.

2
TechLaden•

Can't you push the file to your private repo? (Like in Git)

1
jredmond•

Where is your personal repository? Also on Bitbucket? If so, then your credentials should work from any browser and/or Mercurial client on your computer.

1
OffendoOP•

Yeah, also on bitbucket. Thanks for the help!

1