đ 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