第二次将代码推送到Github

时间:2019-04-04 11:29:49

标签: angular github

我确实成功构建了我的角度代码,并且能够将其发布到Github存储库。 发布时我也提到目录是dist / projectname 因此,我只能在Github存储库中看到Gh-Pages的dist文件夹。 现在,我还想将完整的代码推送到GitHub存储库。 我需要执行什么命令,以便第二次推送并完成代码

我想因为我第二次努力了,所以情况会有所不同

我希望gh -pages下的代码被推送并且dist代码被覆盖

1 个答案:

答案 0 :(得分:0)

您可以运行以下命令将新版本保存到GitHub。

  1. .modalBackground { display: none; position: fixed; z-index: 999; padding-top: 100px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(180, 180, 180, 0.6); } :显示修改后的文件的详细信息。
  2. override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { let sectionHeaderView : UIView = UIView() let sectionHeaderImage: UIImage = UIImage(named: "Flag - ENGLAND.png")! let sectionHeaderImageView : UIImageView = UIImageView(image: sectionHeaderImage) sectionHeaderImageView.translatesAutoresizingMaskIntoConstraints = false let imageViewWidthConstraint : NSLayoutConstraint = NSLayoutConstraint(item: sectionHeaderImageView, attribute: .width, relatedBy: .equal, toItem: sectionHeaderImageView, attribute: .width, multiplier: 0.0, constant: 40) imageViewWidthConstraint.isActive = true sectionHeaderImageView.addConstraint(imageViewWidthConstraint) let imageViewHeightConstraint : NSLayoutConstraint = NSLayoutConstraint(item: sectionHeaderImageView, attribute: .height, relatedBy: .equal, toItem: sectionHeaderImageView, attribute: .height, multiplier: 0.0, constant: 40) imageViewHeightConstraint.isActive = true sectionHeaderImageView.addConstraint(imageViewHeightConstraint) let imageViewLeadingConstraint : NSLayoutConstraint = NSLayoutConstraint(item: sectionHeaderImageView, attribute: .leading, relatedBy: .equal, toItem: sectionHeaderView, attribute: .left, multiplier: 1.0, constant: 50) imageViewLeadingConstraint.isActive = true sectionHeaderView.addSubview(sectionHeaderImageView) // add subview first sectionHeaderImageView.addConstraint(imageViewLeadingConstraint) return sectionHeaderView } :将要推送到GitHub的文件添加到文件中。
  3. git status:为提交添加一条消息。
  4. git add <filename | .>:将提交推送到GitHub

执行此操作后,存储库中的代码将更新为您推送的版本。