AD

 


👉 git version āϚেāĻ•āφāĻĒ āĻ•āϰাāϰ āϜāύ্āϝ āĻ•āĻŽাāύ্āĻĄ āĻšāϞো। 

=> git --version 


👉git āĻāϰ  configuration āĻ…āĻĨাā§Ž āĻ•āϰে āφāύ্āĻĄাāϰে āϰ⧟েāĻ›ে āϤাāϰ āϏেāϟāφāĻĒ āĻ•āϰাāϰ āϜāύ্āϝ । 

=> git config   


👉 user name setup  āĻ•āϰাāϰ āϜāύ্āϝ config command line āĻšāĻŦে । 

  => git config - - global user name “ value “ 

=>  git config  - - global user Email “ Email address “ 


👉 config setup āĻ•āϰা āφāĻ›ে āĻ•িāύা āϚেāĻ• āĻ•āϰাāϰ āϜāύ্āϝ 

=> git config  - - list 


👉āύāϤুāύ āĻĢোāϞ্āĻĄাāϰ āĻ•ে āϞোāĻ•াāϞ āĻĨেāĻ•ে āĻ—িāϟ āĻāϰ  convert āĻ•āϰাāϰ āϜāύ্āϝ  command  āĻšāϞ । 

=> mkdir folderName 


👉āĻāĻ• āĻĢাāχāϞ āĻĨেāĻ•ে āĻ…āύ্āϝāĻĢাāχāϞে āϝাāĻ“ā§Ÿাāϰ āϜāύ্āϝ āĻ…āĻĨাā§Ž directory change āĻ•āϰাāϰ āϜāύ্āϝ comand āĻšāϞো।

=> cd file / folderName 


👉 āĻāĻ•āϟি folder āĻ āĻ•āϤāĻ—ুāϞা āĻĢাāχāϞ āφāĻ›ে āϤা āϚেāĻ• āĻ•āϰাāϰ āϜāύ্āϝ command āĻšāϞো । 

  => is-a (linx) dir-a (windows) 


👉 how to see hidden directory in windows ?

=> dir / a


👉āĻ•োāύ āĻĢোāϞ্āĻĄাāϰ āĻ•ে āϞোāĻ•াāϞ āĻĨেāĻ•ে git āĻāϰ convert āĻ•āϰাāϰ āϜāύ্āϝ command āĻšāϞো ?

=> git init 

👉windows āĻ āύāϤুāύ āĻĢাāχāϞ āϤৈāϰি āĻ•āϰাāϰ āϜāύ্āϝ command line āĻšāϞো ?

=> type null > file name.extension (hlwfile.txt, index.html , style.css ) 


👉 windows āĻ āĻĢাāχāϞ delete āĻ•āϰাāϰ āϜāύ্āϝ command line āĻšāϞো ।

=> del helw.txt ( index.html use file name )


👉windows  āĻ āĻĢোāϞ্āĻĄাāϰ deleting āĻ•āϰাāϰ āϜāύ্āϝ  command line ?

=> rmdir / s homework 

=> rmdir /s DirectoryName 

 

👉āφāĻŽি āĻ•োāύ Directory āϤে āφāĻ›ি āϤাāϰ āϜāύাāϰ āϜāύ্āϝ command line  āĻšāϞ।

=> pwd 


👉 github āĻ āĻ•āύো file commit āĻ•āϰা āφāĻ›ে āĻ•ি āύা āϤা āϝে command line āĻāϰ āϏাāĻšাāϝ্āϝ āϜাāύা āϝাāĻŦে ।

=> git status 


👉 git add āĻ•āϰাāϰ āĻĒāϰ āϝāĻĻি āϏেāϟা remove āĻ•āϰāϤে āϚাāχ āϤাāĻšāϞে āĻ•ি command āĻŦ্āϝāĻŦāĻšাāϰ āĻ•āϰāĻŦো ।

  => git rm --cached fileName 


👉āĻ•োāύ āĻĢাāχāϞে āĻŦা āĻ•োāĻĄ āĻ•ি update āĻŦা Remove āĻ•āϰāϞাāĻŽ āϤা āϜাāύাāϰ āϜāύ্āϝ āĻ•োāύ command āĻŦ্āϝāĻŦāĻšাāϰ āĻ•āϰা āĻšā§Ÿ । 

=> git diff 

=> āĻāϟা git add . āĻāϰ āφāĻ—েāχ āĻĻেāĻ–āϤে āĻšāĻŦে 


👉āĻ•োāύ āĻĄেāϟা txt āĻĢাāχāϞে āϏেāĻ­ āĻ•āϰাāϰ āĻĒāϰ āϜāĻĻি āϏেāϟা āφāĻŦাāϰ āĻŽুāĻ›ে āĻĢেāϞāϤে āϚাāχ āϤাāĻšāϞে āϝে command line āĻŦ্āϝāĻŦāĻšাāϰ āĻ•āϰāĻŦো । 

=> git restore < fileName>


👉āĻĒুāϰা git āĻāϰ history āĻĻেāĻ–াāϰ āϜāύ্āϝ āĻ•োāύ command āĻŦ্āϝāĻŦāĻšাāϰ āĻ•āϰāϤে āĻšāĻŦে । 

=> git log 


👉 if all you want to do is undo the act of committing, leaving everything else intact, use. 

=> git reset - - soft HEAD ^ 


👉if all you want to do is under the act of committing and also removing from the staging area. 

=> git reset HEAD ^ 


👉And if you actually want to completely undo it, throwing away all uncommitted changes, resetting everything to the previous commit class the original question asked. 

=> git reset - - head HEAD ^ 


👉command prompt āϜāĻĻি āĻ•াāϜ āύা āĻ•āϰে āĻ…āĻĨাā§Ž quite āĻšā§Ÿে āϝা⧟ āϤাāĻšāϞে āĻ•ি āĻ•āϰāϤে āĻšāĻŦে । 

=> :(keyboard) q 


👉āφāĻŽāϰা āϜāĻĻি āĻ­াāϞো āĻ­াāĻŦে āĻ…āĻĨাā§Ž āĻļāϟāĻ•াāϟ āĻ­াāĻŦে commit āĻ—ুāϞা āĻĻেāĻ–āϤে āϚাāχ āϤাāĻšāϞে āĻ•োāύ command āĻŦ্āϝāĻŦāĻšাāϰ āĻ•āϰāĻŦো । 

=> git log --oneline 


👉āĻāĻ•āϟা head stage āĻĨেāĻ•ে āϤাāϰ āĻĒূāϰ্āĻŦāĻŦāϤী stage āĻ āϜেāϤে āĻšāϞে āĻ•ি command āĻŦ্āϝāĻŦāĻšাāϰ āĻ•āϰāĻŦো ।

=> git checkout [commit id (6) digit ] 


👉 āĻĒূāϰ্āĻŦāĻŦāϤী stage āĻĨেāĻ•ে current commit āĻ āφāϏāϤে āϚাāχāϞে āĻ•ি command āĻŦ্āϝāĻŦāĻšাāϰ āĻ•āϰāĻŦে । 

=> git checkout master 


👉.gitignore āĻŦ্āϝāĻŦāĻšাāϰ āĻ•āϰি āϝেāχ āĻĢাāχāϞāĻ—ুāϞা āφāĻŽāϰা github āĻ publish āĻ•āϰāϤে āϚাāĻ›ি āύা āϤাāϰ āϜāύ্āϝ āĻŦ্āϝāĻŦাāĻšাāϰ āĻ•āϰা āĻšā§Ÿ । 

=> .gitignore -> test.txt ( .env  , .txt , .!main.txt , test?.txt , temp/) 


Post a Comment

Previous Post Next Post