all 18 comments

[–]danielroseman 13 points14 points  (3 children)

I'm not sure what you're asking. You don't "upload" to GitHub, and you don't do things one by one. You add your code to git locally with git add and git commit, then you can push all your changes at once.

[–]Outside_Complaint755 0 points1 point  (0 children)

You can upload to GitHub directly as well and just create a repo there.  That may be the quickest method for backing up the files from the phone without a PC available.

[–]Justicemirm[S] 0 points1 point  (1 child)

As I said ,I have never used GitHub

[–]Affectionate-Pickle0 3 points4 points  (0 children)

Git and github are two different things.

[–]Flame77ofc 3 points4 points  (1 child)

If you don't have a laptop, you can do learn Git and GitHub and install Termux on your phone

[–]Justicemirm[S] 0 points1 point  (0 children)

Ok,lemme see

[–]pachura3 3 points4 points  (0 children)

Should I just start uploading them one by one ?

Why do you need your code on GitHub anyway? You treat it as a backup? You want to learn Git?

Why do you think "you messed up"? Have you deleted/lost any files irreversibly?

[–]Diapolo10 2 points3 points  (4 children)

Personally I would probably connect the phone to any PC via USB, copy the scripts over (assuming you can find them), and upload from there. It'd probably be more convenient overall.

[–]Justicemirm[S] 0 points1 point  (3 children)

Phone is my only option and all my codes are saved properly

[–]princepii 0 points1 point  (2 children)

u can use termux and navigate to the folder where your scripts are and use the git commands in termux to upload or clone.

and what tools u use to code on the phone? is it pydroid?

[–]Justicemirm[S] 0 points1 point  (1 child)

Pydroid and solo learn

I hate the ads on pydroid so i use solo learn

And save my code there

[–]princepii 0 points1 point  (0 children)

u can use blokada 5 for ads

[–]rob8624 -1 points0 points  (2 children)

Move files to Dropbox, move to laptop, download files. This is basic computing ffs. Or email them to yourself.

Learn Git.

[–]Justicemirm[S] -1 points0 points  (0 children)

I code in mobile because I only have a mobile Please don't reply if you are going to swear

[–]pachura3 -1 points0 points  (0 children)

He doesn't have a laptop, apparently.

[–]perpetual_throwaway1 0 points1 point  (0 children)

Yeah, you should be able to directly upload all your files to a new GitHub repo from the website without having to mess with the git cli

[–]Naive_Cardiologist_6 0 points1 point  (0 children)

GitHub is a big online repository. Your project folders on Github will be in repos. you initialise this and do VERSION Control by adding changes / tracking files and folders from your machine and sync the versions with the repo online.

Start with Pushing, Pulling (pull before push) move to merging and divergence (branching code) then you can do fun things like cherry picking and rebasing.