Gitignore не работает? Справочное руководство.

–í –Ω–∞–∑–≤–∞–Ω–∏–∏ —Å–∫–∞–∑–∞–Ω–æ –≤—Å–µ. –í–æ –º–Ω–æ–≥–∏—Ö —Å–ª—É—á–∞—è—Ö –≤—ã –º–æ–∂–µ—Ç–µ —É—Å—Ç—Ä–∞–Ω–∏—Ç—å –Ω–µ–ø–æ–ª–∞–¥–∫–∏ —Å —Ñ–∞–π–ª–æ–º .gitignore, –ø–æ—Ç–æ–º—É —á—Ç–æ –æ–Ω –Ω–µ —Ä–∞–±–æ—Ç–∞–µ—Ç –¥–æ–ª–∂–Ω—ã–º –æ–±—Ä–∞–∑–æ–º.

–§–∞–π–ª .gitignore –∏–≥—Ä–∞–µ—Ç –≤–∞–∂–Ω—É—é —Ä–æ–ª—å –≤ —Ä–µ–ø–æ–∑–∏—Ç–æ—Ä–∏—è—Ö Git. –ï—Å–ª–∏ –≤—ã " –ø–æ–≤—Ç–æ—Ä–Ω–æ —Ñ–∞–π–ª .gitignore –Ω–µ —Ä–∞–±–æ—Ç–∞–µ—Ç, –≤—ã –º–æ–∂–µ—Ç–µ —Å–ª—É—á–∞–π–Ω–æ –æ—Ç—Å–ª–µ–¥–∏—Ç—å –∏–∑–º–µ–Ω–µ–Ω–∏—è, –∫–æ—Ç–æ—Ä—ã–µ –¥–æ–ª–∂–Ω—ã –æ—Å—Ç–∞–≤–∞—Ç—å—Å—è –∫–æ–Ω—Ñ–∏–¥–µ–Ω—Ü–∏–∞–ª—å–Ω—ã–º–∏. –ù–µ–∫–æ—Ç–æ—Ä—ã–µ –∏–∑ —ç—Ç–∏—Ö –∏–∑–º–µ–Ω–µ–Ω–∏–π –º–æ–≥—É—Ç —Å–æ–¥–µ—Ä–∂–∞—Ç—å –∫–æ–Ω—Ñ–∏–¥–µ–Ω—Ü–∏–∞–ª—å–Ω—É—é –∏–Ω—Ñ–æ—Ä–º–∞—Ü–∏—é, –Ω–∞–ø—Ä–∏–º–µ—Ä –∫–ª—é—á–∏ API.

–î–≤–µ –ø—Ä–∏—á–∏–Ω—ã –ø–æ–ª–æ–º–∫–∏ —Ñ–∞–π–ª–∞ .gitignore:

  • –î–æ–±–∞–≤–ª–µ–Ω–∏–µ —Ñ–∞–π–ª–∞ –≤ .gitignore –ø–æ—Å–ª–µ —Ç–æ–≥–æ, –∫–∞–∫ –≤—ã —Å–æ–≤–µ—Ä—à–∏–ª —ç—Ç–æ.
  • –°—Å—ã–ª–∫–∞ –Ω–∞ –Ω–µ–ø—Ä–∞–≤–∏–ª—å–Ω–æ–µ –∏–º—è —Ñ–∞–π–ª–∞ –∏–ª–∏ –ø—É—Ç—å –≤ –≤–∞—à–µ–º —Ñ–∞–π–ª–µ .gitignore.

–ú—ã –æ–±—Å—É–¥–∏–º –æ–±–µ —ç—Ç–∏ –ø—Ä–æ–±–ª–µ–º—ã –≤ —ç—Ç–æ–º —Ä—É–∫–æ–≤–æ–¥—Å—Ç–≤–µ –∏ –æ–±—Å—É–¥–∏–º —Å–ø–æ—Å–æ–±—ã –∏—Ö —Ä–µ—à–µ–Ω–∏—è. –∏—Ö.

–ß—Ç–æ —Ç–∞–∫–æ–µ —Ñ–∞–π–ª .gitignore?

–§–∞–π–ª .gitignore —Å–æ–¥–µ—Ä–∂–∏—Ç —Å–ø–∏—Å–æ–∫ –≤—Å–µ—Ö —Ñ–∞–π–ª–æ–≤, –∫–æ—Ç–æ—Ä—ã–µ –≤—ã –Ω–µ —Ö–æ—Ç–∏—Ç–µ —Å–æ—Ö—Ä–∞–Ω—è—Ç—å –≤ Git. —Ä–µ–ø–æ–∑–∏—Ç–æ—Ä–∏–π. –≠—Ç–æ—Ç —Ñ–∞–π–ª —á–∞—Å—Ç–æ –∏—Å–ø–æ–ª—å–∑—É–µ—Ç—Å—è –¥–ª—è —Ö—Ä–∞–Ω–µ–Ω–∏—è —Ñ–∞–π–ª–æ–≤ –∫–æ–Ω—Ñ–∏–≥—É—Ä–∞—Ü–∏–∏ –∏ —Å—Ä–µ–¥—ã –≤–Ω–µ —Ä–µ–ø–æ–∑–∏—Ç–æ—Ä–∏—è. –≠—Ç–∏ —Ñ–∞–π–ª—ã —á–∞—Å—Ç–æ —Å–æ–¥–µ—Ä–∂–∞—Ç –ª–∏—á–Ω—É—é –∏–Ω—Ñ–æ—Ä–º–∞—Ü–∏—é –∏ –Ω–µ –¥–æ–ª–∂–Ω—ã –Ω–∞—Ö–æ–¥–∏—Ç—å—Å—è –≤ –∫–∞–∫–æ–º-–ª–∏–±–æ —É–¥–∞–ª–µ–Ω–Ω–æ–º —Ä–µ–ø–æ–∑–∏—Ç–æ—Ä–∏–∏.

–≠—Ç–æ—Ç —Ñ–∞–π–ª –¥–æ–ª–∂–µ–Ω –±—ã—Ç—å –Ω–∞–∑–≤–∞–Ω –∏ —Å–æ—Ö—Ä–∞–Ω–µ–Ω —è–≤–Ω–æ –∫–∞–∫ .gitignore. –ó–∞—Ç–µ–º –≤ —ç—Ç–æ—Ç —Ç–µ–∫—Å—Ç–æ–≤—ã–π —Ñ–∞–π–ª –≤—ã –¥–æ–ª–∂–Ω—ã –¥–æ–±–∞–≤–∏—Ç—å –ø—É—Ç–∏ –∫ —Ñ–∞–π–ª–∞–º –∏–ª–∏ –∫–∞—Ç–∞–ª–æ–≥–∞–º, –∫–æ—Ç–æ—Ä—ã–µ Git –Ω–µ –¥–æ–ª–∂–µ–Ω –æ—Ç—Å–ª–µ–∂–∏–≤–∞—Ç—å. –í—Å–µ, —á—Ç–æ –¥–æ–±–∞–≤–ª–µ–Ω–æ –≤ —ç—Ç–æ—Ç —Ñ–∞–π–ª, Git –∏–≥–Ω–æ—Ä–∏—Ä—É–µ—Ç –∏ –Ω–µ –¥–æ–±–∞–≤–ª—è–µ—Ç –≤ —Å–≤–æ–µ –¥–µ—Ä–µ–≤–æ –æ—Ç—Å–ª–µ–∂–∏–≤–∞–Ω–∏—è.

–í–æ—Ç –ø—Ä–∏–º–µ—Ä —Å–æ–¥–µ—Ä–∂–∏–º–æ–≥–æ —Ñ–∞–π–ª–∞ gitignore:

–í —ç—Ç–æ–º —Ñ–∞–π–ª–µ –º—ã –≤ –æ—Å–Ω–æ–≤–Ω–æ–º –≥–æ–≤–æ—Ä–∏–º Git –∏–≥–Ω–æ—Ä–∏—Ä–æ–≤–∞—Ç—å –æ–ø—Ä–µ–¥–µ–ª–µ–Ω–Ω—ã–π —Ñ–∞–π–ª. –≠—Ç–æ —Ñ–∞–π–ª .env, –∫–æ—Ç–æ—Ä—ã–π —á–∞—Å—Ç–æ —Å–æ–¥–µ—Ä–∂–∏—Ç –∫–ª—é—á–∏ API. –ú—ã —Ç–∞–∫–∂–µ –∏–≥–Ω–æ—Ä–∏—Ä—É–µ–º –ø–∞–ø–∫—É node_module, –∫–æ—Ç–æ—Ä–∞—è —Å–æ–¥–µ—Ä–∂–∏—Ç –≤—Å–µ —É—Å—Ç–∞–Ω–æ–≤–ª–µ–Ω–Ω—ã–µ –ø–∞–∫–µ—Ç—ã NPM.

81% —É—á–∞—Å—Ç–Ω–∏–∫–æ–≤ –∑–∞—è–≤–∏–ª–∏, —á—Ç–æ –æ–Ω–∏ –ø–æ—á—É–≤—Å—Ç–≤–æ–≤–∞–ª–∏ —Å–µ–±—è –±–æ–ª–µ–µ —É–≤–µ—Ä–µ–Ω–Ω—ã–º–∏ –≤ —Å–≤–æ–∏—Ö –ø–µ—Ä—Å–ø–µ–∫—Ç–∏–≤–∞—Ö —Ä–∞–±–æ—Ç—ã –≤ —Ç–µ—Ö–Ω–∏—á–µ—Å–∫–∏—Ö —Å–ø–µ—Ü–∏–∞–ª–∏—Å—Ç–∞—Ö –ø–æ—Å–ª–µ –ø–æ—Å–µ—â–µ–Ω–∏—è —É—á–µ–±–Ω–æ–≥–æ –ª–∞–≥–µ—Ä—è. –ü–æ–ª—É—á–∏—Ç–µ –ø—Ä–∏–≥–ª–∞—à–µ–Ω–∏–µ –Ω–∞ —É—á–µ–±–Ω—ã–π –ª–∞–≥–µ—Ä—å —Å–µ–≥–æ–¥–Ω—è.

–°—Ä–µ–¥–Ω–∏–π –≤—ã–ø—É—Å–∫–Ω–∏–∫ —É—á–µ–±–Ω–æ–≥–æ –ª–∞–≥–µ—Ä—è –ø–æ—Ç—Ä–∞—Ç–∏–ª –º–µ–Ω–µ–µ —à–µ—Å—Ç–∏ –º–µ—Å—è—Ü–µ–≤ –Ω–∞ –ø–µ—Ä–µ—Ö–æ–¥–Ω—É—é –∫–∞—Ä—å–µ—Ä—É, –æ—Ç –Ω–∞—á–∞–ª–∞ —É—á–µ–±–Ω–æ–≥–æ –ª–∞–≥–µ—Ä—è –¥–æ –ø–æ–∏—Å–∫–∞ —Å–≤–æ–µ–π –ø–µ—Ä–≤–æ–π —Ä–∞–±–æ—Ç—ã.

–û–±—â–∏–µ —Ñ–∞–π–ª—ã, –∫–æ—Ç–æ—Ä—ã–µ —Å–ª–µ–¥—É–µ—Ç –∏–≥–Ω–æ—Ä–∏—Ä–æ–≤–∞—Ç—å, –≤–∫–ª—é—á–∞—é—Ç. –§–∞–π–ª—ã DS_Store, —Ñ–∞–π–ª—ã .env –∏ —Ñ–∞–π–ª—ã –∫–æ–Ω—Ñ–∏–≥—É—Ä–∞—Ü–∏–∏. –§–∞–π–ª—ã .DS_Store —á–∞—Å—Ç–æ –≤—Å—Ç—Ä–µ—á–∞—é—Ç—Å—è –≤ –æ–ø–µ—Ä–∞—Ü–∏–æ–Ω–Ω—ã—Ö —Å–∏—Å—Ç–µ–º–∞—Ö macOS –∏ –Ω–µ –æ–±—è–∑–∞—Ç–µ–ª—å–Ω–æ –¥–æ–ª–∂–Ω—ã –±—ã—Ç—å —á–∞—Å—Ç—å—é —Ä–µ–ø–æ–∑–∏—Ç–æ—Ä–∏—è Git.

–ë–æ–ª—å—à–∏–Ω—Å—Ç–≤–æ —Ñ–∞–π–ª–æ–≤ .gitignore —Ä–∞–∑–º–µ—â–∞—é—Ç—Å—è –≤ –∫–æ—Ä–Ω–µ–≤–æ–º –∫–∞—Ç–∞–ª–æ–≥–µ —Ä–µ–ø–æ–∑–∏—Ç–æ—Ä–∏—è. –ß—Ç–æ–±—ã —É–∑–Ω–∞—Ç—å –±–æ–ª—å—à–µ –æ —Ñ–∞–π–ª–∞—Ö .gitignore, –æ–∑–Ω–∞–∫–æ–º—å—Ç–µ—Å—å —Å –Ω–∞—à–∏–º .gitignore —Ä—É–∫–æ–≤–æ–¥—Å—Ç–≤–æ –ø–æ —Ñ–∞–π–ª–∞–º –¥–ª—è –Ω–∞—á–∏–Ω–∞—é—â–∏—Ö .

–°—Ü–µ–Ω–∞—Ä–∏–π –ê. –î–æ–±–∞–≤–ª–µ–Ω–∏–µ —Ñ–∞–π–ª–∞ –≤ .gitignore –ø–æ—Å–ª–µ –µ–≥–æ —Ñ–∏–∫—Å–∞—Ü–∏–∏

–ú—ã –º–æ–≥–ª–∏ –±—ã –ø–æ–∂–∞–ª–æ–≤–∞—Ç—å—Å—è, –ø–æ—á–µ–º—É gitignore –Ω–µ —Ä–∞–±–æ—Ç–∞–µ—Ç –ø–æ—Å–ª–µ —Ç–æ–≥–æ, –∫–∞–∫ –º—ã –ø–æ –æ—à–∏–±–∫–µ –∑–∞—Ñ–∏–∫—Å–∏—Ä–æ–≤–∞–ª–∏ —Ñ–∞–π–ª, –∫–æ—Ç–æ—Ä—ã–π –¥–æ–ª–∂–µ–Ω –±—ã–ª –±—ã—Ç—å –ø—Ä–æ–∏–≥–Ω–æ—Ä–∏—Ä–æ–≤–∞–Ω. –ü–æ—ç—Ç–æ–º—É –º—ã –¥–æ–±–∞–≤–ª—è–µ–º –µ–≥–æ –≤ gitignore –ø–æ—Å–ª–µ —ç—Ç–æ–≥–æ —Ñ–∞–∫—Ç–∞ –∏ –∂–∞–ª—É–µ–º—Å—è, —á—Ç–æ Git –≤—Å–µ –µ—â–µ –æ—Ç—Å–ª–µ–∂–∏–≤–∞–µ—Ç –µ–≥–æ.

–ü—Ä–∏—á–∏–Ω–∞ –≤ —Ç–æ–º, —á—Ç–æ –Ω–∞–º –Ω—É–∂–Ω–æ –¥–æ–±–∞–≤–∏—Ç—å —Ñ–∞–π–ª—ã / –ø–∞–ø–∫–∏ –ø–µ—Ä–µ–¥ –∏—Ö —Ñ–∏–∫—Å–∞—Ü–∏–µ–π. Git —É–∂–µ –æ—Ç—Å–ª–µ–∂–∏–≤–∞–µ—Ç –∏—Ö, –ø–æ—ç—Ç–æ–º—É, —á—Ç–æ–±—ã —Å–Ω–æ–≤–∞ –æ—Ç—Å–ª–µ–¥–∏—Ç—å –∏—Ö, –Ω–∞–º –Ω—É–∂–Ω–æ –±—É–¥–µ—Ç –≤—ã–ø–æ–ª–Ω–∏—Ç—å —Å–ª–µ–¥—É—é—â—É—é –∫–æ–º–∞–Ω–¥—É:

–ü–µ—Ä–≤–∞—è —á–∞—Å—Ç—å git rm —É–¥–∞–ª—è–µ—Ç "path". –§–ª–∞–≥ & ndash; cached —É–∫–∞–∑—ã–≤–∞–µ—Ç, —á—Ç–æ –æ–Ω —É–¥–∞–ª—è–µ—Ç—Å—è –∏–∑ –∏–Ω–¥–µ–∫—Å–∞, –Ω–æ –æ—Å—Ç–∞–µ—Ç—Å—è –≤ –ª–æ–∫–∞–ª—å–Ω–æ–º –∫–∞—Ç–∞–ª–æ–≥–µ. r - —ç—Ç–æ —Ä–µ–∫—É—Ä—Å–∏–≤–Ω–æ–µ —É–¥–∞–ª–µ–Ω–∏–µ, –µ—Å–ª–∏ —É–∫–∞–∑–∞–Ω –ø—É—Ç—å –∫ –∫–∞—Ç–∞–ª–æ–≥—É, –∞ f –ø—Ä–∏–Ω—É–¥–∏—Ç–µ–ª—å–Ω–æ. –ï—Å–ª–∏ –≤—ã —Ä–∞–±–æ—Ç–∞–µ—Ç–µ —Ç–æ–ª—å–∫–æ —Å —Ñ–∞–π–ª–æ–º –∏ –ø–æ-–ø—Ä–µ–∂–Ω–µ–º—É —Ö–æ—Ç–∏—Ç–µ —Å–æ—Ö—Ä–∞–Ω–∏—Ç—å –µ–≥–æ –Ω–∞ —Å–≤–æ–µ–º –ª–æ–∫–∞–ª—å–Ω–æ–º –∫–æ–º–ø—å—é—Ç–µ—Ä–µ, –≤—ã–ø–æ–ª–Ω–∏—Ç–µ —Å–ª–µ–¥—É—é—â–∏–µ –¥–µ–π—Å—Ç–≤–∏—è:

–¢–∞–∫–∏–º –æ–±—Ä–∞–∑–æ–º, –≤—ã —É–∫–∞–∑—ã–≤–∞–µ—Ç–µ Git, —á—Ç–æ –±–æ–ª—å—à–µ –Ω–µ —Ö–æ—Ç–∏—Ç–µ –æ—Ç—Å–ª–µ–∂–∏–≤–∞—Ç—å –ø—Ä–µ–¥–æ—Å—Ç–∞–≤–ª–µ–Ω–Ω—ã–π —Ñ–∞–π–ª / –ø–∞–ø–∫—É. –¢–µ–ø–µ—Ä—å –ø–æ–ø—Ä–æ–±—É–π—Ç–µ –µ—â–µ —Ä–∞–∑, –∏ –≤–∞—à gitignore –±—É–¥–µ—Ç —Ä–∞–±–æ—Ç–∞—Ç—å –¥–æ–ª–∂–Ω—ã–º –æ–±—Ä–∞–∑–æ–º . –ü—Ä–æ—Å—Ç–æ –ø–æ–º–Ω–∏—Ç–µ, —á—Ç–æ —Ñ–∞–π–ª / –ø–∞–ø–∫–∞ –¥–æ–ª–∂–Ω—ã –±—ã—Ç—å —É–∫–∞–∑–∞–Ω—ã –¥–ª—è —Ä–∞–±–æ—Ç—ã gitignore!

–°—Ü–µ–Ω–∞—Ä–∏–π B: Gitignore —Å–æ–∑–¥–∞–Ω –¥–æ —Ñ–∏–∫—Å–∞—Ü–∏–∏ –∏ –≤—Å–µ –µ—â–µ –Ω–µ –æ—Ç—Å–ª–µ–∂–∏–≤–∞–µ—Ç —Ñ–∞–π–ª

–ï—Å–ª–∏. gitignore –ø–æ-–ø—Ä–µ–∂–Ω–µ–º—É –Ω–µ –æ—Ç—Å–ª–µ–∂–∏–≤–∞–µ—Ç —Ñ–∞–π–ª, —Ä–µ—à–µ–Ω–∏–µ –º–æ–∂–µ—Ç –±—ã—Ç—å —Ç–∞–∫–∏–º –∂–µ –ø—Ä–æ—Å—Ç—ã–º, –∫–∞–∫ –ø—Ä–æ–≤–µ—Ä–∫–∞ —Ç–æ–≥–æ, —á—Ç–æ –≤—ã —Å—Å—ã–ª–∞–µ—Ç–µ—Å—å –Ω–∞ –ø—Ä–∞–≤–∏–ª—å–Ω—ã–π —Ñ–∞–π–ª. –í–∞–º –Ω—É–∂–Ω–æ —Ç–æ—á–Ω–æ —É–∫–∞–∑–∞—Ç—å, –∫–∞–∫–∏–µ —Ñ–∞–π–ª—ã –≤—ã —Ö–æ—Ç–∏—Ç–µ, —á—Ç–æ–±—ã —Ñ–∞–π–ª .gitignore –∏–≥–Ω–æ—Ä–∏—Ä–æ–≤–∞–ª. –õ—é–±—ã–µ –æ—Ä—Ñ–æ–≥—Ä–∞—Ñ–∏—á–µ—Å–∫–∏–µ –æ—à–∏–±–∫–∏ –∏–ª–∏ –Ω–µ–ø—Ä–∞–≤–∏–ª—å–Ω—ã–µ –∏–º–µ–Ω–∞ –ø—É—Ç–µ–π –¥–æ–ª–∂–Ω—ã –±—ã—Ç—å –∏—Å–ø—Ä–∞–≤–ª–µ–Ω—ã –≤–∞–º–∏ –≤—Ä—É—á–Ω—É—é.

–†–∞—Å—Å–º–æ—Ç—Ä–∏–º —Å–ª–µ–¥—É—é—â–∏–π –ø—Ä–∏–º–µ—Ä:

–§–∞–π–ª .gitignore —Å–æ–æ–±—â–∞–µ—Ç Git, –∫–∞–∫–∏–µ —Ñ–∞–π–ª—ã —Å–ª–µ–¥—É–µ—Ç –∏–≥–Ω–æ—Ä–∏—Ä–æ–≤–∞—Ç—å, –≤ –¥–∞–Ω–Ω–æ–º —Å–ª—É—á–∞–µ —ç—Ç–æ –≤—Å–µ —Ñ–∞–π–ª—ã .pyyc. –ù–æ –º—ã –Ω–∞–º–µ—Ä–µ–Ω—ã –∏–≥–Ω–æ—Ä–∏—Ä–æ–≤–∞—Ç—å —Ñ–∞–π–ª—ã .pyc. –§–∞–π–ª—ã .pyc - —ç—Ç–æ —Ñ–∞–π–ª—ã –∫–æ–Ω—Ñ–∏–≥—É—Ä–∞—Ü–∏–∏ –¥–ª—è –ø—Ä–æ–≥—Ä–∞–º–º Python. –ù–∞—à —Ñ–∞–π–ª .gitignore –Ω–µ –∑–Ω–∞–µ—Ç —ç—Ç–æ–≥–æ, –ø–æ—ç—Ç–æ–º—É –Ω–∞–º –Ω—É–∂–Ω–æ –∏—Å–ø—Ä–∞–≤–∏—Ç—å –Ω–∞—à–µ –ø—Ä–∞–≤–∏–ª–æ:

–ù–∞—à —Ä–µ–ø–æ–∑–∏—Ç–æ—Ä–∏–π —Ç–µ–ø–µ—Ä—å –±—É–¥–µ—Ç –∏–≥–Ω–æ—Ä–∏—Ä–æ–≤–∞—Ç—å –≤—Å–µ —Ñ–∞–π–ª—ã .pyc.

–¢–∞–∫–∂–µ —É–±–µ–¥–∏—Ç–µ—Å—å, —á—Ç–æ —É –≤–∞—Å –Ω–µ—Ç –∫–æ–Ω–µ—á–Ω–æ–≥–æ –ø—Ä–æ–±–µ–ª–∞ –Ω–∏ –≤ –Ω–∞—á–∞–ª–µ, –Ω–∏ –≤ –∫–æ–Ω—Ü–µ –æ–±—ä—è–≤–ª–µ–Ω–∏—è —Ñ–∞–π–ª–∞ / –ø–∞–ø–∫–∏.

–ó–∞–∫–ª—é—á–µ–Ω–∏–µ

–ú—ã –æ–±—Å—É–¥–∏–ª–∏ –Ω–µ—Å–∫–æ–ª—å–∫–æ —Å—Ü–µ–Ω–∞—Ä–∏–µ–≤ –∏ –≤–æ–∑–º–æ–∂–Ω–æ—Å—Ç–∏ —Ä–µ—à–µ–Ω–∏–π –¥–ª—è —Ä–∞–∑–ª–∏—á–Ω—ã—Ö —Å–ª—É—á–∞–µ–≤, –∫–æ–≥–¥–∞ gitignore –Ω–µ —Ä–∞–±–æ—Ç–∞–ª –¥–æ–ª–∂–Ω—ã–º –æ–±—Ä–∞–∑–æ–º. –ì–ª–∞–≤–Ω—ã–π –≤—ã–≤–æ–¥ —Å–æ—Å—Ç–æ–∏—Ç –≤ —Ç–æ–º, —á—Ç–æ –≤—ã –¥–æ–ª–∂–Ω—ã –ø–æ–Ω–∏–º–∞—Ç—å, –≥–¥–µ —Ä–∞—Å–ø–æ–ª–æ–∂–µ–Ω—ã —Ñ–∞–π–ª—ã / –∫–∞—Ç–∞–ª–æ–≥–∏, —á—Ç–æ–±—ã –≤—ã –º–æ–≥–ª–∏ –¥–æ–±–∞–≤–∏—Ç—å –ø—Ä–∞–≤–∏–ª—å–Ω—ã–π –ø—É—Ç—å.

–í—ã –¥–æ–ª–∂–Ω—ã –∑–Ω–∞—Ç—å, —á—Ç–æ –≤—ã –¥–æ–ª–∂–Ω—ã –¥–æ–±–∞–≤–ª—è—Ç—å –ª—é–±—ã–µ —Ñ–∞–π–ª—ã, –∫–æ—Ç–æ—Ä—ã–µ –Ω—É–∂–Ω–æ –∏–≥–Ω–æ—Ä–∏—Ä–æ–≤–∞—Ç—å, –∫–∞–∫ —Ç–æ–ª—å–∫–æ –≤—ã —Å–æ–∑–¥–∞–¥–∏—Ç–µ –∏—Ö. –ï—Å–ª–∏ –≤—ã —Å–¥–µ–ª–∞–ª–∏ —ç—Ç–æ –ø–æ –æ—à–∏–±–∫–µ, –∫ —Å—á–∞—Å—Ç—å—é, —É –Ω–∞—Å –µ—Å—Ç—å git rm -rf & ndash; cached "path & gt ;. –≠—Ç–∞ –∫–æ–º–∞–Ω–¥–∞ —É–¥–∞–ª–∏—Ç —Ñ–∞–π–ª –∏–∑ —Ä–∞–±–æ—á–µ–≥–æ –ø—Ä–æ—Ü–µ—Å—Å–∞ Git. –ó–∞—Ç–µ–º –≤—ã –º–æ–∂–µ—Ç–µ –¥–æ–±–∞–≤–∏—Ç—å –≤ gitignore, —á—Ç–æ–±—ã –≤–∞—à —Ñ–∞–π–ª –∏–≥–Ω–æ—Ä–∏—Ä–æ–≤–∞–ª—Å—è.

–ü–æ—Å–ª–µ–¥–Ω–µ–µ –ø—Ä–∏–º–µ—á–∞–Ω–∏–µ . –ú–æ–≥—É—Ç –±—ã—Ç—å –∏ –¥—Ä—É–≥–∏–µ —Å–ª—É—á–∞–∏, –∫–æ–≥–¥–∞ git reset –º–æ–∂–µ—Ç –æ–∫–∞–∑–∞—Ç—å—Å—è –ø–æ–ª–µ–∑–Ω—ã–º. –Ø –Ω–∞–ø–∏—Å–∞–ª —Å—Ç–∞—Ç—å—é –æ git reset , –∫–æ—Ç–æ—Ä–∞—è –±—É–¥–µ—Ç –ø–æ–ª–µ–∑–Ω–∞ –≤ —ç—Ç–∏—Ö —Å–ª—É—á–∞—è—Ö. –¢–∞–∫–∏–º –æ–±—Ä–∞–∑–æ–º, —Å–±—Ä–æ—Å Git –±—É–¥–µ—Ç –ø–æ—Ö–æ–∂ –Ω–∞ –æ—Ç–º–µ–Ω—É –¥–µ–π—Å—Ç–≤–∏—è, –≤–æ–∑–≤—Ä–∞—Ç –≤ –ø—Ä–æ—à–ª–æ–µ, –ø–æ—ç—Ç–æ–º—É –≤ –Ω–µ–∫–æ—Ç–æ—Ä—ã—Ö —Å–ª—É—á–∞—è—Ö —ç—Ç–æ –∏–º–µ–Ω–Ω–æ —Ç–æ, —á—Ç–æ –≤–∞–º –Ω—É–∂–Ω–æ.

–•–æ—Ç–∏—Ç–µ —É–∑–Ω–∞—Ç—å –±–æ–ª—å—à–µ –æ Git? –ü—Ä–æ—á—Ç–∏—Ç–µ –Ω–∞—à–µ –†—É–∫–æ–≤–æ–¥—Å—Ç–≤–æ –ø–æ –∏–∑—É—á–µ–Ω–∏—é Git . –í —ç—Ç–æ–º —Ä—É–∫–æ–≤–æ–¥—Å—Ç–≤–µ –≤—ã –Ω–∞–π–¥–µ—Ç–µ —Å–æ–≤–µ—Ç—ã —ç–∫—Å–ø–µ—Ä—Ç–æ–≤ –ø–æ –∏–∑—É—á–µ–Ω–∏—é Git –∏ —Ä—É–∫–æ–≤–æ–¥—Å—Ç–≤–æ –ø–æ –ª—É—á—à–∏–º —É—á–µ–±–Ω—ã–º —Ä–µ—Å—É—Ä—Å–∞–º.

Shop

Learn programming in R: courses

$

Best Python online courses for 2022

$

Best laptop for Fortnite

$

Best laptop for Excel

$

Best laptop for Solidworks

$

Best laptop for Roblox

$

Best computer for crypto mining

$

Best laptop for Sims 4

$

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

12 answers

NUMPYNUMPY

How to convert Nonetype to int or string?

12 answers

NUMPYNUMPY

How to specify multiple return types using type-hints

12 answers

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

12 answers


Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method