项目作者: bam241

项目描述 :
BaM bash-macros
高级语言: Shell
项目地址: git://github.com/bam241/bash_macros.git
创建时间: 2017-01-22T22:40:35Z
项目社区:https://github.com/bam241/bash_macros

开源协议:BSD 3-Clause "New" or "Revised" License

下载


======

Macros

  1. git-change-url:

    • taken from: https://gist.github.com/sankalp-khare/11356560
    • Description: allows to switch between https and ssh the remote in a git repo
    • Usage:
      • git-change-url —to-ssh convert https url to ssh
      • git-change-url —to-https conver ssh url to https one.
  2. py_switch: allows to switch between py 3.5 and py 2.7, working only on
    MacOS using macport

  3. set_all_remote: change all remote from one username to another. Actually
    setup to change Baaaaam into bam241… Can be easily change if needed…

  4. c_git:

    • Usage:
      • without args, check if the actual folder is under git versionning, if
        not git init it, then create a new GitHub named as the root folder
        and add the remote, If the folder is already on git versionning, check
        is there is a remote, if there is one, not pointing on one of your
        GitHub repos, try to fork it, then setup both origin and upstream
        remote, if there is no remote, create a repo on your GitHub account,
        and add the remote as origin,
      • with args, create a new GitHub repo name as the args, then
        clone it locally.
  5. clang-format: allow usage of clang-format, taken from
    https://github.com/travisjeffery/ClangFormat-Xcode.