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