
নিচে গিট কমান্ডগুলো রয়েছে যেগুলো আমি বারবার ব্যবহার করি।
রিপোজিটরি ক্লোন করুন
git clone https://github.com/tinymce/tinymce-dist.git
বিদ্যমান গিট ফাইলগুলো রিমোট গিট রিপোতে যোগ করুন
cd /path/to/my/repo
git remote add origin https://lostinkali@bitbucket.org/lostinkali/flightstats.git
git push -u origin --all # pushes up the repo and its refs for the first time
git push -u origin --tags # pushes up any tags
বিদ্যমান ফোল্ডারে একটি রিপোজিটরি তৈরি করুন
git init
git add .
# Adds the files in the local repository and stages them for commit
git commit -m "Initial commit"
বর্তমান ব্রাঞ্চকে মাস্টারে পরিবর্তন করুন
git checkout better_branch
git merge --strategy=ours master # keep the content of this branch, but record a merge
git checkout master
git merge better_branch
ব্রাঞ্চ মুছুন
git branch -D bugfix
পূর্ববর্তী কমিটে ফিরে যান
git checkout master
git reset --hard e3f1e37
git push --force origin master
# Then to prove it (it won't print any diff)
git diff master..origin/master
ফাইলটি গিটে যোগ করে।
git add [filename]
লগের সাম্প্রতিক কমিটের পর থেকে ট্র্যাক না করা ফাইলগুলো মুছে ফেলে।
git clean -fd
যোগ করা ফাইলগুলো গিটে কমিট করে।
git commit -m "enter message here"
ফাইলটি গিট থেকে সরান। পরিবর্তন থাকলেও ফাইল সরানোর জন্য -f ব্যবহার করুন।
git rm file1.txt
সময়ের একটি নির্দিষ্ট পয়েন্ট ট্যাগ করা।
git tag -a v1.4 -m 'my version 1.4'
লেখক: চাক কনওয়ে সফটওয়্যার ইঞ্জিনিয়ারিং এবং জেনারেটিভ এআই-তে বিশেষজ্ঞ। তার সাথে সোশ্যাল মিডিয়ায় যোগাযোগ করুন: X (@chuckconway) অথবা তাকে YouTube-এ দেখুন।