đ 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