Skip to content

mobiledropbox/git_setup

 
 

Repository files navigation

git_setup

This repository serves as a guide for installing and using Git on Windows.

English well-mannered version

Do not follow these 10 steps carelessly if Git is not yet installed on your Windows computer.

  1. Visit the repository on GitHub that you want to fork using your web browser.

  2. Click "Fork" to create a copy of that repository under your own GitHub account.

  3. Open your terminal — either PowerShell (as Administrator, if Git is installed) or your native Bash terminal (if using Linux).

  4. Run this command

git clone https://github.com/profile_mo/repo_name_na_forked
  1. Move (cd) to the directory where you downloaded the clone repo then run this command
git checkout -b "branch_name_related_to_repository_or_project"
  1. Navigate to the cloned directory in your file explorer. Keep the terminal open for later use when you reach step 8.

  2. Locate and edit the file you want to modify — whether it is an .md file, an image, or any other file type.

  3. Stage your changes and proceed on running these commands

If the file is inside a folder

git add foldername_muna/mismong_file.md

or if its your own repository and you are certain of all your edits, you may use

git add . 

(But be cautious — this stages everything, including accidental changes especially when you get sleepy sometimes)

  1. Commit your changes with a clear and concise message:
git commit -m "comment or message for your commit"
  1. Push your branch to your remote repository:
git push origin "pangalan_ng_branch_na_trip_mo_pero_syempre_dapat_conventional_at_related_name_sa_rep_or_project"

Once you have pushed your branch, go back to GitHub in your browser and create a Pull Request from your branch to the original repo.

Add a short description of what you changed and why, then submit for review by the repository maintainer.

Taglish tolonges gedli etneb version

Huwag mo gagawin ang mga 10 steps na ito na parang geng-geng kung hindi pa installed ang Git sa windows computer mo.

  1. Punta ka sa GitHub via web browser tapos puntahan mo iyong profile ng gusto mong i-fork na repo.

  2. Fork it para magkaroon ka na rin sa repo mo.

  3. Labas ka web browser open PowerShell as administrator (dapat installed na ang git) or bash terminal (native na sa Linux distros so no need to install git).

  4. Paandarin mo command na ito

git clone https://github.com/profile_mo/repo_name_na_forked
  1. Tapos pumunta ka doon sa directory kung saan mo ni-download iyang clone repo (cd) then paandarin mo command na ito
git checkout -b "pangalan_ng_branch_na_trip_mo_pero_syempre_dapat_conventional_at_related_name_sa_rep_or_project"
  1. Kung saang directory ka nag-execute ng command sa step 4, puntahan mo na ngayon, iwan mo lang nakabukas muna itong terminal or PowerShell mo para alt tab na lang mamaya pag umabot ka sa step 8.

  2. Hanapin iyong gusto mo palitan na file.

  3. Edit mo na, ikaw na bahala kung canva image man yan, i-adobe ps mo bahala ka, .md or anything kahit pa paint or ms word.

  4. Balik sa terminal or PowerShell tapos pili ka isa diyan kung ano trip mo paandarin, pero mas maganda iyong una

git add foldername_muna/mismong_file.md

o kaya naman

git add . 

(Pero be cautious sa git add . ha? Kasi dito madalas ulyanin ang mga tolonges, may napapasama na accidental changes sa file na hindi sinasadya)

  1. Paandarin mo command na ito
git commit -m "comment or message mo sa iyong comit"

at saka pati na rin ang command na ito

git push origin "pangalan_ng_branch_na_trip_mo_pero_syempre_dapat_conventional_at_related_name_sa_rep_or_project"

Pagkatapos, alt tab balik sa browser GitHub then create Pull Request sa profile ng original repo creator.

aeronje
└──git_setup/
    ├── README.md
    ├── aeronje_style_git_setup.ps1
    ├── git_setup_delete.sh
    ├── git_notes_english.md
    ├── git_notes_tagalog.md
    ├── index.html
    └── assets/
        └── images/

Deleting Git credentials

Linux (English well-mannered version)

  1. Download the git_setup_delete.sh
  2. Open terminal
  3. Change directory to the path/folder where you save the shell script from step 1.
  4. Run the command
chmod +x git_setup_delete.sh
  1. Run the command
./git_setup_delete.sh

Linux (Taglish tolonges gedli etneb version)

  1. Download mo tong git_setup_delete.sh
  2. Open mo terminal bes kahit hindi naka sudo or root user keri na iyon.
  3. Mag change directory ka, diba kunwari ni-saved mo sa Downloads? Kunwari lang ha. Hindi ako sure kung saan mo ni-saved kasi ikaw nakaka-alam nun. Kung sakaling Downloads folder man then nasa baba ang command
cd Downloads
  1. Paandarin mo itong command na ito kapag nandoon ka na sa folder kung saan mo ni-save iyong ginawa mo sa step 1
chmod +x git_setup_delete.sh
  1. Paandarin mo itong command na ito at magbasa ka bes ng mga output sa terminal, basahin mo mabuti
./git_setup_delete.sh

Screenshare video is only filmed for Windows because Linux command is mostly straightforward.

Windows

Watch this video because I am tired of typing.

Tech content

Currently in production, but it will be available on the digital creator page once filming is complete.

About

This repository serves as a guide for installing and using Git on Windows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 45.2%
  • HTML 41.2%
  • Shell 13.6%