user@machine:~$ git init # Note: Initialized empty Git repository in ~PATH/.git/
user@machine:~$ git add anyName.txt anyName.sh anyName.py DeepLearning MachineLearning Bioinformatics NLP # Note: Adding One-by-One
user@machine:~$ git add * # Note: Or, we can use "git add ."; we can add all {files, directories} at the same times.
user@machine:~$ git add rm --cached anyName.txt anyName.sh anyName.py DeepLearning MachineLearning Bioinformatics NLP # Note: Remove One-by-one
user@machine:~$ git add rm --cached * # Note: Remove all Together
user@machine:~$ git status # Note: We can monitor current condition of files and directories.
user@machine:~$ git commit -m 'Write Something' # Note: Save the files and directories.
user@machine:~$ git remote add origin https://github.com/anyUserName/anyName.git # Trying to access remotely GitHub repository
user@machine:~$ git remote rm origin # Fix the fatal err when trying to access remotely GitHub repository
user@machine:~$ git push -u origin master --force # Note: Dangerious Commands, remote all existances and add new.
user@machine:~$ git mv <OLD> <NEW>
user@machine:~$ git add <NEW> # (Optional)
user@machine:~$ git commit --message='Track Changes'
-
-
user@machine:~$ git mv f11.py fg12.py user@machine:~$ git add fg12.py # (Optional) user@machine:~$ git commit --message='We renamed the file (f11.py --> fg12.py)'
-
user@machine:~$ git add fg12.py # (Optional) user@machine:~$ git commit --message='We renamed the file (f11.py --> fg12.py)'
-
- Note: Reference: https://www.patrick-wied.at/blog/rename-files-and-folders-with-git