👨‍🏫 Tutorial Organize your Microsoft Word, Excel, and Powerpoint Versions using Git!

42697262

最高
Naranasan nyo na ba gumagawa kayo reports tapos merong daming revisions kahit final na? Merong solusyon dyan! Think like a programmer!

Kagaya nito:

1703495778765.png


Ang tool lang na dapat mo gamitin ay Git!

Pero bakit Git? Diba para lang yun sa mga programmers? Nope! Pwede rin yun sa mga general use case kagaya ng paggawa sa mga research papers, project reports, mga notes, at iba pa.



Installation Steps

First, Download GIT.
Next, install git.

Click Yes
1703496532632.png

Click Next
1703496560343.png
Click Next
1703496589485.png

Click Next
1703496692298.png

Click Next
1703496714887.png
Select Use Notepad++ as Git's default editor. Click Next
1703496750197.png
Click Next
1703496789160.png
Click Next
1703496800611.png

Click Next
1703496812878.png
Click Next
1703496824099.png
Click Next
1703496839222.png
Click Next
1703496847676.png
Click Next
1703496863313.png
Click Next
1703496872665.png
Click Next
1703496888467.png

Click Install
1703496904488.png
1703496934479.png

Pagkatapos ng install, click Finish.
1703497024824.png

Next step is install Notepad++ (check References).


Go to your documents, then right click and select Open Git Bash Here:

1703497131215.png


Dapat ito yung makita mo:
1703497175062.png



How TO USE?

1. Initalize yung repository: git init
1703497322557.png
Dapat may makita ka na hidden folder: .git

2. Delete mo yung useless files mo! Then check gamit git status.

1703497441271.png
1703497473960.png

3. Add mo yung files mo for tracking with git add "RRL Proposal - final fina v2.docx"
Dapat makita mo yung files mo ay naka kulay GREEN after add as new file thru git status
1703497666085.png
4. Try mo mag git commit
, kapag ito ang lalabas, set mo lang yung config mo:
1703497810023.png

Config Commands:
git config --global user.email "phcorner_user@gmail.com
git config --global user.name "phcorner_learner"

dapat yung gamitin mong email and username ay sa IYO!
pwede any email lang for now as long as alam ni git sino ang nag commit.

Dapat ito yung lalabas after mo set sa config and commit:

1703498015514.png

And then tapos kana mag save ng progress mo!

What if ma delete yung file mo? Easy lang!
1703498108720.png
1703498127776.png
Check your files with git status for any changes, tapos if may makita ka na deleted. Pwede mo pa rin yan ma restore with git restore .
1703498253322.png


BOOM! Bumalik yung files mo!




What if merong kang bagong changes sa file?

Easy lang, proceed ka lang sa same steps sa taas.
1703498350249.png

Makita mo na may merong modified ang iyong file.

Proceed ka sa mga steps:
  1. git add .
  2. git commit -m "bagong changes" -m "merong spelling at grammar mistakes sa paragraph 4 ng chapter 3"
And tapos na!


What if gusto mo magswitch to previous version ng file?

Hindi gangana yung git restore since para lang yan sa mga modified changes na wala pa na commit. Ang pwede mong gawin ay mag git log ka tapos git restore to the commit. Ito yung steps:


1. git log
1703498548339.png

makita mo sa taas ay ang commit is f31d3df2aef15...etc. yun ang gamitin pang change to older version na commit at pwede ka din doon mag modify ng bago mong versions

2. use git checkout -b <title ng branch name mo> <commit>


1703498762071.png

Pagkatapos nyan, na restore na ang iyong file!

BONUS:
Use git branch para ilista yung mga branches (different versions ng files mo) then use git checkout <branch name>
1703499001117.png

Makita din mo beside (right side) sa directory yung current branch. From balik_final_revision to master



Commands:
  • Create new repository: git init
  • Add new file: git add <filename>
  • Add all files: git add .
  • New branch: git checkout -b <branch_name>
  • Switch branch: git branch <branch_name>
  • Check status: git status
  • Commit: git commit -m <title> -m <description>
  • Restore file changes to original: git restore <file>


References:

You do not have permission to view the full content of this post. Log in or register now.

FIND MORE EXAMPLES SA COMMENTS

1703496636605.png

1703498769368.png

1703498966596.png
 
Same din sa ginagawa ko for any revisions ng paper works at project files, ganda tignan pag naka organized sa repo
ganyan din gawa ko sa mga notes para matrack ko yung changes ko.

Another example
Meron akong notes about sa science:
1703499275771.webp
1703499241118.webp

1703499318939.webp

Add ko sya for tracking: git add . tapos commit ko sya

1703499354355.webp

Tapos if meron akong bagong notes:
1703499443065.webp

Makita ito gamit git diff and git status
1703499471887.webp
Red lines = removed
Green lines = added

1703499557705.webp
Ito gawa ko para macommit to the master branch.
 

About this Thread

  • 3
    Replies
  • 152
    Views
  • 3
    Participants
Last reply from:
Remremskie

Trending Topics

Online now

Members online
1,198
Guests online
1,374
Total visitors
2,572

Forum statistics

Threads
2,291,974
Posts
29,073,870
Members
1,210,122
Latest member
Armagedon134
Back
Top